Re: No More JavaScript API in 6.0??

  •  05-08-2007, 11:34 AM

    Re: No More JavaScript API in 6.0??

    max,
     
    Please use the new JavaScript API.
     
      <script type="text/javascript" >
       function getHTML()
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');
        
        // Get the editor HTML
        document.getElementById("myTextArea").value = editor1.getHTML();
       }  
       
       function setHTML()
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');
        
        // Set the editor 
        editor1.setHTML(document.getElementById("myTextArea").value);
       }
       
       
       function PasteHTML(html)
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');
        
        editor1.PasteHTML(html);
       }
       
       function SetActiveTab(tab)
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');
        
        editor1.SetActiveTab(tab);
       }
       
       
       function setFocus()
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');
        
        editor1.FocusDocument();
       }
      </script>

    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