Skip to content

Instantly share code, notes, and snippets.

@perifer
Created October 17, 2011 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perifer/1293524 to your computer and use it in GitHub Desktop.
Save perifer/1293524 to your computer and use it in GitHub Desktop.
ckeditor module settings
name = CKEditor settings
description = Special settings for CKEditor/Wysiwyg module.
package = User interface
core = 7.x
dependencies[] = wysiwyg
<?php
function ckeditor_settings_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']->editor == 'ckeditor') {
$settings['forcePasteAsPlainText'] = true;
$settings['extraPlugins'] = 'autogrow';
$settings['toolbarCanCollapse'] = false;
$settings['enterMode'] = 2;
$settings['disableNativeSpellChecker'] = false;
$settings['autoGrow_minHeight'] = 420;
$settings['autoGrow_maxHeight'] = 600;
$settings['skin'] = 'drupal';
$settings['removePlugins'] = 'contextmenu, elementspath';
// Example of setting customConfig option. Just note it gets overridden by values in $settings.
// $settings['customConfig'] = '/sites/all/libraries/ckeditor/config.js';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment