Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey everyone,
does anyone know how to enable the autoGrow-Plugin from CKEditor? I do have a custom module already. So maybe I can add autoGrow support via this?
My Module:
function wysiwygsetting_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']->editor == 'ckeditor') {
$settings['uiColor'] = '#141B20';
$settings['scayt_sLang'] = 'de_DE';
$settings['height'] = 100;
$settings['wsc_lang'] = 'de_DE';
$settings['bodyId'] = 'primary';
$settings['bodyClass'] = 'singlepage';
}
}
Thanks for your help everyone! And thanks for all the work with the module!
Comments
Comment #1
TwoDYou could append it to the list of extra plugins to load (
$settings['extraPlugins']
), but we also have a hook to provide Wysiwyg with metadata about plugins so they can be added to the "Buttons and plugins list". It is mentioned in wysiwyg.api.php, but I'll provide the minimum code you need.You could also automatically disable the resize plugin from your settings hook when this one is detected:
Comment #2
Yucom CreditAttribution: Yucom commentedJust wanted to say thanks! Everythings working fine now!
Thanks for all the work!