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

Capture Change View Event

2 Answers 47 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 16 Jul 2008, 08:39 PM

Hi, I apologize if this has already been asked, but is it possible to capture an event when a user changes the editor view. My objective is hook onto this event so that I have an opportunity to manipulate the content.

More specifically, I'd like "<%" and "%>" to be treated like script tags and not have the editor encode anything between them (just like how the editor treats "<script" and "/script>". Currently, the editor automatically encodes them. I'd appreciate any advice on how to do this if an event is not available.

Thanks!

Gavin

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 22 Jul 2008, 01:28 PM
Hi Gavin,

My suggestion is to try to implement you own content filter. The content filter is firing when the user switches to Html mode or submitting the content. You can see the following live example and help article for more information.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gavin
Top achievements
Rank 1
answered on 24 Jul 2008, 03:12 AM

Hi Rumen,

Thank you. That's what I needed.

Gavin
Tags
Editor
Asked by
Gavin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Gavin
Top achievements
Rank 1
Share this question
or