08-29-2014, 08:10 AM
[eluser]ivantcholakov[/eluser]
Also, see this page http://ckeditor.com/ckeditor_4.3_beta/sa...ering.html
The configuration option config.allowedContent is interesting, set it to true. See their example there:
Edit: If it works, then you need to decide what tags are to be allowed and to enumerate them.
But... this is javascript implemented protection that is easy to be bypassed. I prefer to set config.allowedContent to true and then to apply my filter as a form validation rule, a server-side filter. Have a look at http://htmlpurifier.org/
Also, see this page http://ckeditor.com/ckeditor_4.3_beta/sa...ering.html
The configuration option config.allowedContent is interesting, set it to true. See their example there:
Code:
CKEDITOR.replace( textarea_id, {
allowedContent: true
} );
Edit: If it works, then you need to decide what tags are to be allowed and to enumerate them.
But... this is javascript implemented protection that is easy to be bypassed. I prefer to set config.allowedContent to true and then to apply my filter as a form validation rule, a server-side filter. Have a look at http://htmlpurifier.org/