When CKEditor is loaded and I’m editing the stuff, I want the background to be yellow as I edit.
How do I “set” that stylesheet inside the editor.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is an option
contentsCsswhich lets you to load an external CSS stylesheet containing your custom style definitions. Using that you can make your content look exactly as it would look on your website. So in order to use it you need to instantiate CKEditor in the following way:And you would also define you
custom.cssfor example as follows:EDIT. Using config.js
There are couple of ways to achive what you need using
config.jsfile. Example:Create
contents.cssfile in the same folder asconfig.js. Inside define your styles:That’s it.