Skip to content
Snippets Groups Projects
Commit a9768c21 authored by Devin Carlson's avatar Devin Carlson Committed by Devin Carlson
Browse files

Issue #3403923 by Devin Carlson: Add toolbar button configuration help text

parent a5990c0d
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@
margin: 0;
padding: 0;
}
.ckeditor-toolbar-configuration .fieldset-description {
margin-bottom: 1em;
}
.ckeditor-toolbar-active {
border: 1px solid #d1d1d1;
padding: 6px 4px 2px;
......
......@@ -166,6 +166,9 @@ function theme_editor_ckeditor_settings_toolbar($variables) {
// We don't use theme_item_list() below in case there are no buttons in the
// active or disabled list, as theme_item_list() will not print an empty UL.
$output = '';
$output .= '<div id="ckeditor-button-description" class="fieldset-description">';
$output .= t('Move a button into the <em>Active toolbar</em> to enable it, or into the list of <em>Available buttons</em> to disable it. Toolbar group labels are provided to support screen reader users. Empty toolbar labels will be removed upon save.');
$output .= '</div>';
$output .= '<strong>' . t('Active toolbar') . '</strong>';
$output .= '<div class="ckeditor-toolbar-active clearfix">';
$output .= '<ul class="ckeditor-active-toolbar-configuration">';
......@@ -236,7 +239,7 @@ function theme_editor_ckeditor_settings_toolbar($variables) {
$fieldset = array(
'#type' => 'fieldset',
'#children' => $output,
'#title' => t('CKEditor Toolbar'),
'#title' => t('Toolbar configuration'),
);
return drupal_render($fieldset);
......
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