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:


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -