diff --git a/panopoly_wysiwyg.module b/panopoly_wysiwyg.module index 447533b..ebb79db 100644 --- a/panopoly_wysiwyg.module +++ b/panopoly_wysiwyg.module @@ -164,7 +164,7 @@ function panopoly_wysiwyg_alter_wysiwyg_editor_settings(&$settings, $context) { // If there is no custom button_order, fall back on Panopoly defaults else { $enabled_buttons = preg_split('/,/', $settings['theme_advanced_buttons1']); - $default_buttons = array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'linkit', 'unlink', 'break', '|', 'fullscreen', 'spellchecker', 'media', 'captionfilter', 'pdw_toggle', 'PAGEBREAK', 'formatselect', '|', 'underline', '|', 'justifyfull', '|', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo'); + $default_buttons = array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter', 'justifyright', '|', 'linkit', 'unlink', 'drupal_break', '|', 'fullscreen', 'spellchecker', 'drupal_media', 'captionfilter', 'pdw_toggle', 'PAGEBREAK', 'formatselect', '|', 'underline', '|', 'justifyfull', '|', 'forecolor', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'charmap', '|', 'outdent', 'indent', '|', 'undo', 'redo'); foreach ($default_buttons as $button) { if (in_array($button, $enabled_buttons)) { unset($enabled_buttons[array_search($button, $enabled_buttons)]);