Created
October 17, 2011 19:28
-
-
Save perifer/1293524 to your computer and use it in GitHub Desktop.
ckeditor module settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = CKEditor settings | |
description = Special settings for CKEditor/Wysiwyg module. | |
package = User interface | |
core = 7.x | |
dependencies[] = wysiwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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