Wysiwyg module - ckeditor (add autogrow plugin)

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com我們的新網頁設計公司網頁.

function modulename_wysiwyg_editor_settings_alter(&$settings, &$context) {
  if ($context['profile']->editor == 'ckeditor') {
     if (!empty($settings['extraPlugins'])) {
       $settings['extraPlugins'] .= ',autogrow';
     }
     else {
       $settings['extraPlugins'] .= 'autogrow';
     }
     $settings['resize_enabled'] = FALSE;
     $settings['autoGrow_maxHeight'] = 500;
  }
}
Help Share this Article