Javascript Error when trying to use editor.pasteHtml

2 posts, 0 answers
  1. Yavuz Bogazci
    Yavuz Bogazci avatar
    7 posts
    Member since:
    Sep 2009

    Posted 27 Oct 2009 Link to this post


    i have a big Problem. I get a Javascript Error when i try to use the editor.pasteHtml Function.

    Here is my Code:

        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">680px</property>    
        <property name="AllowScripts">true</property> 

        <tool name="Inhaltsverzeichnis" /> 

    Telerik.Web.UI.Editor.CommandList["Inhaltsverzeichnis"] = function(commandName, editor, args)  

    It is very curious! When i only call alert('test'); without editor.PasteHtml('asdasd'); finally, everything works fine and i get an alert without any errors. But when i try to use the editor.PasteHtml('hello'); function, i always get an Javascript error and nothing happens.

    Can someone help please.

  2. Stanimir
    Stanimir avatar
    1653 posts

    Posted 27 Oct 2009 Link to this post

    Hello Yavuz,

    You suggested the following correction in other thread.

    The P of .PasteHtml must be lowercase!

    Correct: .pasteHtml

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Back to Top