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

Setting custom text on post-back

2 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lori
Top achievements
Rank 1
Lori asked on 30 Mar 2010, 03:48 PM
Bad title!! Sorry, it is client-side!!!

I'm using version 6.5 of the RadEditor. (no chances of upgrading) I'm having an issue with setting the text, client-side. I try setting the value using the innerHtml propertry, but it is not working.

var

 

editor = GetRadEditor(txt);

editor.innerHTML += selectedText;

If I check the editor.innerHtml value before I set it, it does get the value that is already in there. However, it doesn't change it to the selectedText. Any ideas?

2 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 30 Mar 2010, 08:02 PM
Doesn't the RadEditor control for your version contain the client-side method set_html()? If it doesn't than I guess the only way would be to find out the name that's being applied to the iFrame that it uses and set the innerHTML on that.

I hope that helps.
0
Rumen
Telerik team
answered on 31 Mar 2010, 02:25 PM
Hi guys,

To set content in RadEditor Classic on the client side you should use the SetHtml() client method. You can also paste content on cursor position using the PasteHtml method.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Lori
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or