Skip to content
Snippets Groups Projects
Commit 6f95d520 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-411] Slight reordering of the tinymce toolbar buttons

parent d5f74639
No related branches found
No related tags found
No related merge requests found
......@@ -233,14 +233,14 @@ function unl_wysiwyg_plugin($editor) {
case 'tinymce':
return array(
'unl' => array(
'url' => 'http://gforge.unl.edu/gf/project/wdn_tinymce/',
'url' => 'http://github.unl.edu/iim/TinyMCE',
'path' => $editor['library path'] . '/plugins/unl',
'internal' => TRUE,
'load' => TRUE,
'buttons' => array(
'unlZenBox' => 'UNL Zenbox',
'unlGrid' => 'UNL Grid',
'unlTooltip' => 'UNL Tooltip',
'unlZenBox' => 'UNL Zenbox',
'unlGrid' => 'UNL Grid',
'unlTooltip' => 'UNL Tooltip',
),
),
'codeprotect' => array(
......@@ -273,8 +273,8 @@ function unl_wysiwyg_editor_settings_alter(&$settings, $context) {
// Process a default order for the buttons
$enabled_buttons = preg_split('/,/', $settings['theme_advanced_buttons1']);
$default_buttons = array('bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter','justifyright','|','link', 'unlink', 'image', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'pdw_toggle',
'PAGEBREAK', 'formatselect', 'styleselect', '|', 'underline', '|', 'justifyfull', '|', 'sup', 'sub', 'charmap', '|', 'indent', 'outdent', '|', 'unlGrid', 'unlZenBox', 'unlTooltip', '|', 'undo', 'redo', '|', 'fullscreen', );
$default_buttons = array('formatselect', '|', 'bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter','justifyright','|','link', 'unlink', 'image', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'pdw_toggle',
'PAGEBREAK', 'styleselect', 'forecolor', 'backcolor', '|', 'underline', '|', 'justifyfull', '|', 'sup', 'sub', 'charmap', '|', 'indent', 'outdent', '|', 'anchor', '|', 'unlGrid', 'unlZenBox', 'unlTooltip', '|', 'undo', 'redo', '|', 'search', 'replace', '|', 'fullscreen', );
foreach($default_buttons as $button) {
if (in_array($button, $enabled_buttons)) {
unset($enabled_buttons[array_search($button, $enabled_buttons)]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment