Reputation: 6656
How can I use more than 1 css file as content CSS with CKEditor? I already added bootstrap css in the config.
config.contentsCss = '/css/bootstrap.min.css';
Our designer created a 2nd css to customize some stuff and I also need to add that css file to CKEditor.
I tried variations below, but no success so far:
config.contentsCss = '/css/bootstrap.min.css', '/css/styles.css';
config.contentsCss = '/css/bootstrap.min.css, /css/styles.css';
I am using v 4.1.1
Upvotes: 6
Views: 8132
Reputation: 22023
The config.contentsCss
documentation is absolutely clear about this. This setting accepts a string or an array of strings. Like this:
config.contentsCss = [ '/css/mysitestyles.css', '/css/anotherfile.css' ];
Upvotes: 16