How can I append custom css file fo ck editor ?
How can I append custom css file fo ck editor ?
I found this method.
https://docs.ckeditor.com/ckeditor4/latest/guide/plugin_sdk_styles.html
CKEDITOR.plugins.add( 'example', {
init: function( editor ) {
var pluginDirectory = this.path;
editor.addContentsCss( pluginDirectory + 'styles/example.css' );
}
} );
How ?
This discussion has been closed.
Answers
It looks like you could just run that snippet before the initialisation of DataTables or Editor. It is referencing the global
CKEDITOR
variable and adding to its plug-in tree with a object / funciton that will be initialised when a new CKEditor is created.Allan