Drupal, CKEditor and absynthe-theme
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:
http://drupal.ckeditor.com/tricks.
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.
Comments
Post new comment