Re: Problem inserting code snippet at start of html in CE6

  •  01-23-2008, 2:29 AM

    Re: Problem inserting code snippet at start of html in CE6

    pbeddis,
     
    Code Snippet dropdown implements the following API:
     
    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");

     
    This API allows you paste any content into the editor at the cursor position.
     
    If you want to paste the content in the beginning of the editor, you have to move the cursor position first.
     
    If you are updating the whole document, please check the following API. It will move the cursor position ton the beginning of the document.
     
    SetHTML() This method is used for setting the content of CuteEditor.

    Example:

    // get the cute editor instance
    var editor1 = document.getElementById('<% = Editor1.ClientID%>');

    // setting the content of Cute Editor
    editor1.setHTML("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

View Complete Thread