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

RadEditor.PasteHtml

1 Answer 157 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gayatri
Top achievements
Rank 1
Gayatri asked on 20 Mar 2009, 06:02 AM
Hi,
    I am using Rad editor in my application. I am opening a pop up window and pasting the value selected in the pop up to the editor. The problem i am facing is that the text  is getting pasted in the first position of the editor inspite of the cursor posistion. The code used is given below:

RadEditor1ClientObject.SetFocus();

 

RadEditor1ClientObject.PasteHtml(Symbol);

I wanted to the paste the text from the pop up in the cursor position of the ediotr. Please help me with this issue.

Thanks
Gayatri

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Mar 2009, 02:19 PM
Hi Gayatri,

The code that you have sent us applies to RadEditor Classic.
Could you please, tell us the exact version of RadEditor dll in your project? Do you use RadEditor Classic (RadEditor.dll) or RadEditor for ASP.NET AJAX (Telerik.Web.UI.dll)?

If you are opening your custom popup from an external button then set unselectable="on" attribute to the custom button and do not fire the RadEditor1ClientObject.SetFocus(); method.

If you are opening the custom dialog from a custom button of RadEditor then try the methods described in the following help article: http://www.telerik.com/help/aspnet/editor/createrestorepoint.html

Best regards,
Rumen
the Telerik team

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