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

[gh-417] Place Media TinyMCE button in the top row

parent 556fec95
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ function unl_wysiwyg_wysiwyg_editor_settings_alter(&$settings, $context) { ...@@ -39,7 +39,7 @@ function unl_wysiwyg_wysiwyg_editor_settings_alter(&$settings, $context) {
// Process a default order for the buttons // Process a default order for the buttons
$enabled_buttons = preg_split('/,/', $settings['theme_advanced_buttons1']); $enabled_buttons = preg_split('/,/', $settings['theme_advanced_buttons1']);
$default_buttons = array('formatselect', '|', 'bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter','justifyright','|','link', 'unlink', 'image', '|', 'pastetext', 'pasteword', 'removeformat', '|', 'pdw_toggle', $default_buttons = array('formatselect', '|', 'bold', 'italic', 'strikethrough', '|', 'bullist', 'numlist', 'blockquote', '|', 'justifyleft', 'justifycenter','justifyright','|','link', 'unlink', 'image', 'media', '|', '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', ); '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) { foreach ($default_buttons as $button) {
if (in_array($button, $enabled_buttons)) { if (in_array($button, $enabled_buttons)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment