In our project we're allowing our users to write content with CKEditor 3. But most of the time the font, size and colour has to be the same and every user is selecting it over and over again, for each time they write something.
So we're trying to find out how to set the default font, default size and default colour automatically.
I've tried changing the CSS but the result is that CKEditor is not returning it in its output html.
Does CKEditor support this? Or is this a missing feature?
If it's missing, can it be done using the plugin system?
Thanks for support.
So we're trying to find out how to set the default font, default size and default colour automatically.
I've tried changing the CSS but the result is that CKEditor is not returning it in its output html.
Does CKEditor support this? Or is this a missing feature?
If it's missing, can it be done using the plugin system?
Thanks for support.
Re: How to set a default font, size and colour?
Anyone got any ideas how to fix this?
Re: How to set a default font, size and colour?
Thanks, Kris
Hey guys, I hope this helps.
Hey guys, I hope this helps. Here are a few things I have noticed.
First, I really need to keep on refreshing to see the new changes appear. I edited the .css file named contents.css inside the /ckeditor/ directory, you can change these:
color: #000000;
background-color: #ffffff;
font-size:24px; /* Just added this */
I also noticed you can edit the file named editor.css inside the /ckeditor/skins/kama/editor.css directory. You can change 'kama' to whatever skin you are using. Now you can edit the .cke_contents parts.
Seems also like contents.css will overwrite what you have done in editor.css. Hope this helps guys.
Make sure you refresh or clear cache to see if any changes are being made.
- Lukasz
Those are just the editor's
Those are just the editor's colors/properties. They are not the attributes of content being edited which is what I believe the OP was asking about.