Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL-CMS
Commits
d98e1521
Commit
d98e1521
authored
Nov 29, 2012
by
Eric Rasmussen
Browse files
[gh-417] Place Media TinyMCE button in the top row
parent
556fec95
Changes
1
Hide whitespace changes
Inline
Side-by-side
sites/all/modules/unl_wysiwyg/unl_wysiwyg.module
View file @
d98e1521
...
...
@@ -39,7 +39,7 @@ function unl_wysiwyg_wysiwyg_editor_settings_alter(&$settings, $context) {
// Process a default order for the buttons
$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'
,
);
foreach
(
$default_buttons
as
$button
)
{
if
(
in_array
(
$button
,
$enabled_buttons
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment