It appears that CKEditor with default config breaks ASP.NET MVC templates (which are HTML files with merge codes and curly braces).
Steps to reproduce
- - Go to http://ckeditor.com/demo
- - Switch to source code
- - Paste html from http://jsbin.com/kanazamawagu/1/edit
- - Switch back to WYSIWYG mode - note that all the curly braces are outside of the grid now
Is there any way to make it work? Is there any other known editor that doesn't mess ASP.NET templates?
CKEditor (just like most
CKEditor (just like most browser-based WYSIWYG editors) work on HTML and your ASP.NET template is not valid HTML code, is it? So it's hard to expect the editor to parse your custom code.
You can, however, add your ASP.NET code to the config.protectedSource configuration option. Thanks to this it will not be available for editing in WYSIWYG mode.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!