HTML online editor call method

zhaozj2021-02-16  49

HTML online editor call method

HTML Online Editor does not need to know how to use Dreamweaver, use Word to use this editor, which is very practical in the article system or news system requires text editing web programs. But how do you embed the HTML editor into the web page and how to get the data inside? ! First we assume that we have to call the HTML online editor in a separate page, the file name is gledit.htm upload image front page: http://www.jfinfo.com/admin/img_upload.asp. HTML online editor has two basic call methods, using Object calls (http://www.jfinfo.com/room/admin/editor.asp): 1, how to embed HTML editor in the web page: We are in need Embedded position Add the following HTML code: where DATA is rear after DATA is DATA We have to call the online editor page, the ID is to call Object to get the ID, and then use this ID when you take the data in the editor. Width and Height are the height and width of the editor. 2, how to get the data in the HTML editor: All the content you need to submit We all put it in a form, and use the Object called editor in this form, and we can set a hidden text area (< Textarea name = "content" style = "display: none"> or ) to temporarily save the data of the HTML online editor when submitted, because ASP or JSP, the content of Object in the form cannot be directly acquired in PHP, so we must obtain data with hidden text area. We copy the contents of the Object to the hidden text area while submitting. Detailed code is as follows: