ckeditor - Hide toolbar and show colors -
i have problem. i'd show ckeditor without toolbar, , still keep colors on it. code.
$(document).ready(function() { var textareaname = 'description'; ckeditor.replace( textareaname, { removeplugins: 'toolbar,elementspath', readonly: true } ) ; var ockeditor = ckeditor.instances[textareaname]; });
the problem text color doesn't show. seems ckeditor disable color well.
assuming (because it's still unclear) want keep text color in editor's contents (btw. editor's contents not rendered using textarea
- used easier data submitting) solution:
config.extraallowedcontent = 'span{!color}';
this allow span
elements color
style. read more advanced content filter.
Comments
Post a Comment