Question : HTML Editor - change default background color

I have purchased HTML Editor V 2.0 from webassist which I think uses or is based on CKEditor .

I can’t work out how to change the default background color of the text area to black and the default text color to white as I am building a website for a client that wants white text on dark background.

Your comments and feedback would be greatly appreciated.

Answer : HTML Editor - change default background color

in the file ckeditor/config.js you can add a CSS class to the body of the editor and then use normal CSS to change the background and font color.

So your CSS may include this:


and in your config.js file set the editor to use the above class with:

CKEDITOR.editorConfig = function( config )
 config.bodyClass = 'editor-body';
Random Solutions  
programming4us programming4us