This is a migrated thread and some comments may be shown as answers.

Error after calling pasteHtml()

2 Answers 86 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 03 Oct 2008, 07:42 AM
Hi,

when I call pasteHtml of a RadEditor instance the text gets inserted as expected but when I click inside the editor I get this error:
"Could not complete the operation due to error 800a025e".

What does this mean? Did I do something wrong? Here's the code which performs
the pasteHtml:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
            function insertPlaceholder() { 
                var placeholerSelector = $find("<%= PlacholderSelectBox.ClientID %>"); 
                var editor = $find("<%= TemplateEditor.ClientID %>"); 
 
                editor.pasteHtml(placeholderSelector.get_value()); 
            } 
        </script> 
    </telerik:RadCodeBlock> 

Best Regards,
Robert

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 03 Oct 2008, 08:28 AM
Hi,

It appears that after calling pasteHtml() a postback happens. After that the editor looses focus. The cursor is placed somewhere on the page (not on any control - just inside some white space). If I then click inside the editor, the error occures. If I click some other control first, the error does not appear.
This is rather strange.

Best regards,
Michael
0
George
Telerik team
answered on 03 Oct 2008, 01:06 PM
Hi Robert,

Thank you for the provided information, but unfortunately it is insufficient for us to determine what the exact reason for the problem is. Please open a support ticket and send us a sample runnable project where the error can be reproduced. We will check it locally and do our best to provide a solution,


All the best,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
George
Telerik team
Share this question
or