views:

107

answers:

1

In controller level i used [ValidateInput(false)] and ValidateRequest="false" in the view.

Everything is fine except CKEDITOR removing <% %> tags.

Is there any other configuration i am missing?

+1  A: 

To prevent CKEditor from removing content, the protectedSource setting will do what you need. Manual & examples

Pekka
thank you! exact solution was: config.protectedSource.push( /<%[\s\S]*?%>/g )
Orkun Balkancı