Ckeditor Removed Javascript. Here's Solution
- 6 March 2014
- Volodymyr Hodiak
- Development
- 4421
After WYSIWYG in CKEditor was updated, we came across a problem with stripping tags in one of the projects we maintain. Having googled a bit, I understood that not only we have the problem.
A solution was found in the documentation. Open the configuration file and write in a regular expression for the parser.
config.protectedSource.push( //g ); /* script tags */ config.allowedContent = true; /* all tags */
Hopefully, the article is useful.
P.S.: Leave your questions in the comments)