I followed the tutorial on how to write a content filter (between Design & HTML) but there does not seem to be a way to apply one to the view mode?
I want to be able to apply some rules to the view, and then go back to my design retaining the original values
3 Answers, 1 is accepted
0
Rumen
Telerik team
answered on 14 Jul 2009, 12:26 PM
Hi Grayson,
You can achieve your scenario by attaching to the editor's OnClientModeChange event property and checking for the Preview mode. After that you can manipulate the content in the DOM using the editor.get_document() method.
Thanks Rumen,
Unfortunatly css is presentation only, and I want to change the content.
What I am currently looking at is having two editor controls (edit & preview), and when I change modes I make one's display = 'none'. This approach seems to work so far here is a link to the code: