0

If I try to change the height and style of the ckeditor text window with css then I find there are numerous layers to the css which makes it difficult to style. Is there a width and height setting in the settings which I can modify?

2
  • Take it you use the WYSIWYG module?
    – Alex Gill
    Commented Dec 20, 2012 at 9:52
  • that is correct. Commented Dec 20, 2012 at 10:17

1 Answer 1

2

You should give this a go...

/**
 * Set a class on the iframe body element for WYSIWYG editors. 
 * This only works for the WYSIWYG module: http://drupal.org/project/wysiwyg
 */
function adaptivetheme_wysiwyg_editor_settings_alter(&$settings, &$context) {
  $settings['bodyClass'] = 'wysiwygeditor';
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.