Online editors are very useful in our daily project development (such as news systems). It can easily implement online editing of articles, eliminating the need for tools such as FrontPage. So how to implement the online editing function of the browser? First of all, it requires the support of IE. After IE5.5, there is an editing state. This editing state is used, and then javascript is used to control the online editing.
First of all, there must be an edit box. This edit box is actually an editable web page. We use iframe to create the edit box.
And add javascript code to Specify HtmlEdit to have editing function (the complete original code is provided below):