Created
January 17, 2012 22:27
-
-
Save scorchio/1629397 to your computer and use it in GitHub Desktop.
Sample for overriding CKeditor settings when used with the WYSIWYG modul in Drupal
This file contains hidden or 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 scor_ckeditor_config_wysiwyg_editor_settings_alter(&$settings, $context) { | |
if ($context['profile']->editor == 'ckeditor') { | |
$settings['toolbar'] = array( | |
array( | |
'PasteText', 'PasteFromWord', 'RemoveFormat', '-', | |
'Link', 'Unlink', 'Anchor', '-', | |
'Image', 'Flash', 'CreateDiv', 'break', '-', | |
'Source', 'Maximize'), | |
'/', | |
array( | |
'Bold', 'Italic', 'Underline', '-', | |
'Strike', 'Superscript', 'Subscript', '-', | |
'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', | |
'Blockquote', '-', | |
'BulletedList', 'NumberedList', '-', | |
'Format') | |
); | |
$settings['skin'] = 'kama'; | |
$settings['language'] = 'hu'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment