CKEditor Stripping Out Some of Our CSS classes -
we having problem ckeditor (ver 4.1.1.5) stripping out of our css classes when editing in full html mode using source. looking @ of other questions posed on this, advanced content filter place should going. and, if read correctly, need edit config.js file add: ckeditor.config.allowedcontent=true;
am going in right direction? want wysiwyg still work people no html experience. however, when go source, want classes remain , not stripped out, no matter what.
you partially right:
- yes, advanced content filter (acf) mechanism responsible this.
- but no, setting
config.allowedcontent
true
not correct solution.
in short, acf useful mechanism lets control content users add site ckeditor. instead of disabling it, however, should extend filter configuration accept whatever additional elements, classes, styles, attributes want allow.
in case, if want additionally allow classes elements, use in editor configuration:
config.extraallowedcontent = '*(*)';
read more acf here:
- content filtering (acf) - introduction
- demo of automatic mode , custom mode
- advanced content filter - more advanced
- allowed content rules - syntax acf rules
Comments
Post a Comment