Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
How do I insert text at end of document (scrolling)?
How do I insert text at end of document (scrolling)?
03-15-2007, 8:35 AM
ephillipe
Joined on 03-15-2007
Posts 2
How do I insert text at end of document (scrolling)?
Reply
Quote
I try add text at the end of the document but it doesn't work.
My code:
function PasteHTML(html)
{
// get the cute editor instance
var editor1 = document.getElementById('<%=Editor1.ClientID%>');
// get internal editor document
var editdoc = editor1.GetDocument();
// get default view of internal document
var defView = editdoc.defaultView;
// insert of text
editor1.PasteHTML(html);
// trying scroll document
defView.scroll(0, 222000);
editor1.FocusDocument();
}
View Complete Thread