Aug 20

Drupal, CKEditor and absynthe-theme

Sat, 08/20/2011 - 08:17 — F.R.R.

With some themes CKEditor in Drupal does not work right by default, e.g. where the background in the text-field is to dark. For the Marienelli theme, the solution is presented here:

But the same problems show up with this theme as well; Absynthe

The added code in the ckeditor.config.js-file regarding the Marienelli theme is: 

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;}";

The only difference in the Absynthe-theme to Marienelli is in the first two lines:

config.bodyClass = 'main';

config.bodyId = 'clearfix';

Well, everyone could have imagined that, looking at the source code in Absynthe. But since I already have done that, I can as well share it with you. 



Post new comment

The content of this field is kept private and will not be shown publicly.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
9 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
By submitting this form, you accept the Mollom privacy policy.