Created
February 24, 2012 16:15
-
-
Save robinvdvleuten/1901824 to your computer and use it in GitHub Desktop.
Add your own styles to Drupal's WYSIWYG module
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 ckeditor_styles_wysiwyg_editor_settings_alter(&$settings, &$context) | |
{ | |
if ($context['profile']->editor == 'ckeditor') { | |
$settings['extraPlugins'] .= ',stylesheetparser'; | |
// Not necessary but removes all default styles from the CKEditor. | |
$settings['stylesSet'] = array(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment