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

Clearing the editor before adding a snippet.

2 Answers 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Juan_Massyn
Top achievements
Rank 1
Juan_Massyn asked on 24 Aug 2010, 03:02 PM
Hi

Technically, this question is actually referring to the old classic ASP control (2007 Q3). We are in the process of upgrading, but it's a slow process.

I have a request to clear the content of the editor when the user adds a snippet. Now, since the snippet functionality is entirely handled by the editor, and we only have the toolsfile.xml to configure it, I'm not sure if this is possible. Unless, of cause, you expose an event which fires when the user adds a snippet.

If this functionality is not supported, it's ok. I just want to find out, so I can give a clear answer.

Thanks

2 Answers, 1 is accepted

Sort by
0
Juan_Massyn
Top achievements
Rank 1
answered on 25 Aug 2010, 11:54 AM
If anyone it interested in the awnser, you can use the clientCommandExecuting event. I haven't finished the function yet, but now that I have this event, the rest should be smooth sailing.
0
Rumen
Telerik team
answered on 25 Aug 2010, 12:33 PM
Hi Juan_Massyn,

Yes, the OnClientCommandExecuting event is the one that you should use to achieve your scenario. You can clear the content using the editor.SetHtml("") 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
Juan_Massyn
Top achievements
Rank 1
Answers by
Juan_Massyn
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or