pasteHTML

Last post 04-13-2006, 9:58 AM by afilipovik. 2 replies.
Sort Posts: Previous Next
  •  04-12-2006, 1:45 PM 18156

    pasteHTML

    I'm using a trial version of CuteEdit. When I use pasteHTML JavaScript API call, I'm getting an error message "Object doesn't support this property or method.".
     
    Here is the code:
                <script>var editor = document.getElementById("<%= Editor1.ClientID %>"); alert(editor); alert(editor.innerHTML); editor.pasteHTML("axitapatla");</script>
     
    The first alert shows "[object]" and the second shows the inner HTML of CE_Editor1_ID. Why pasteHTML doesn't work?
     
    Thank you,
    Alex
  •  04-12-2006, 2:53 PM 18163 in reply to 18156

    Re: pasteHTML

    Alex,
     
    Your code looks ok to me.
     
    Are you sure your Cute Editor Id is "Editor1"?
     

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

    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

  •  04-13-2006, 9:58 AM 18198 in reply to 18163

    Re: pasteHTML

    I've been going in circles again because of your developer's guide. For the "PasteHTML" you put a sample that calls it with lower case "p". Sometimes people spend hours to figure out what's wrong. And this is not the only one. Try to use the spell check button on toolbar. According to developer's guide, you should put <item name="netspell" /> in the config file. But this doesn't work. Why developers using your editor should go through your forum and find out that the documentation is wrong? You have found this issue on 08/01/2005 and didn't corrected yet. I would like to see a link on your web page about the errors in developer's guide. It will be much easier than reading all forum messages.
     
    Thank you,
    Alex
View as RSS news feed in XML