When using cutom theme, sometimes it is necessary to tell CKEditor to use the correct style.
Let's use as example the marinelli
theme.
By default, it is hard to create a page with CKEditor: background color used by site and font color are too similar and it's very hard to read anything, text is aligned to the center:
Fortunately, there is a way to tell CKEditor to appear just like we expect.
Take a look at the source of marinelli template (you may use Firefox with Firebug to do that). The ID of main element is called "primary". The class is named "singlepage".
All we need to do is to tell CKEditor to use that styles:
config.bodyClass = 'singlepage'; config.bodyId = 'primary';
config.extraCss += "body{background:#FFF;text-align:left;font-size:0.8em;}";
config.extraCss += "#primary ol, #primary ul{margin:10px 0 10px 25px;}";
Here's the final result:
Necessary changes for marinelli theme are already available in ckeditor.config.js. They can be taken as an example.
Comments
dsafdsafdafads
dsafdsafdafads
tach
tach
test
test
ljkbjhk dgsfdgsdfg rzect azer
ljkbjhk dgsfdgsdfg rzect azer
htfbfdvfdvfdvfdsvfdvfd
htfbfdvfdvfdvfdsvfdvfd
test
test
WTF? No, I didn't enter all
WTF? No, I didn't enter all those spaces.
TEST
(No subject)
Test for Drupal.
Test for Drupal.
Post new comment