Goto: Topic: An explanation of how to invoke the HTML online editor and how to use it

Source: Internet
Author: User
Tags goto
Topics: An explanation of how to invoke HTML online editors and how to use them
Author: Nwpuwolf (Baoyu)
Level
Reputation Value: 100
Forum: ASP
Problem points: 20
Number of replies: 25
Publish Time: 2002-10-4 15:37:49



Submit to Csdn no response, or take out share it, welcome what questions you have replies, thank you:
At the end of the article there are some URLs to refer to
Experience in practice, maybe some of them can help
The HTML online editor does not need to know how to use Dreamweaver, and it uses Word to use this editor, which is very useful in the article system or in Web programs that require text editing in a news system.
But how do I embed an HTML editor into a Web page and how do I get the data inside?!
First we assume that the HTML online editor we are going to call is placed on a separate page with the filename gledit.htm.
The HTML online editor has two basic methods of calling
One, using object invoke:
1. How to embed HTML editor in Web pages: We add the following HTML code where we need to embed: <object id=doc_html data= "gledit.htm" width=530 height=320 X-scriptlet viewastext></object>
The object tag inside the data received is what we want to call the online editor page path, ID is we call the object ID, followed by the editor in the data to use this ID. Width and height are the height and width of the editor.
2, how to get the data in the HTML editor: all the content to be submitted we are placed in a form, also using the object called Editor also placed in this form, and we can set a hidden text area (<textarea name= "content" The style= "Display:none" ></textarea> or <input type= "hidden" name= "Content" >) is used to temporarily save data for the HTML online editor at the time of submission. Because the content of object in the form is not directly available in the ASP or jsp,php, we must use the hidden text area to get the data. We copy the contents of the object into the hidden text area while the form is submitted. The detailed code is as follows:
<script language= "JavaScript" >
function Checkform ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.