When using setHTML the whole document is reset.
>>How can I keep the scroll position after formating ?
Please use the following method:
PasteHTML() |
This method is used for pasting the specified HTML into a range within an editor document. If anything is selected, the selection is replaced with the new HTML and text.
Example:
// get the cute editor instance
var editor1 = document.getElementById('<% = Editor1.ClientID%>');
// pasting the specified HTML into a range within a editor document
editor1.PasteHTML("Hello World");
|
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx