Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding multiple content CSS files to CKEditor

Tags:

ckeditor

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

like image 382
dvdmn Avatar asked Apr 03 '15 14:04

dvdmn


1 Answers

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' ];
like image 88
Reinmar Avatar answered Nov 08 '22 23:11

Reinmar