diff --git a/core/modules/ckeditor/ckeditor.module b/core/modules/ckeditor/ckeditor.module index 4ca9956..a4f0c51 100644 --- a/core/modules/ckeditor/ckeditor.module +++ b/core/modules/ckeditor/ckeditor.module @@ -6,6 +6,30 @@ */ /** + * Implements hook_help(). + */ +function ckeditor_help($path, $arg) { + switch ($path) { + case 'admin/help#ckeditor': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The CKEditor module provides a visual text editor and adds a toolbar to text fields. Users can use buttons to format content and to create semantically correct and valid HTML. The CKEditor module uses the framework provided by the Text Editor module. It requires JavaScript to be enabled in the browser. For more information, see the online documentation for the CKEditor module and the CKEditor website.', array( '@doc_url' => 'https://drupal.org/documentation/modules/ckeditor', '@cke_url'=>'http://ckeditor.com', '@text_editor' => url('admin/help/editor'))) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Enabling CKEditor for individual text formats') . '
'; + $output .= '
' . t('CKEditor has to be enabled and configured separately for individual text formats from the Text formats and editors page because the filter settings for each text format can be different. For more information, see the Text Editor help page and Filter help page.', array('@formats' => url('admin/config/content/formats'), '@text_editor' => url('admin/help/editor'), '@filter' => url('admin/help/filter'))) . '
'; + $output .= '
' . t('Configuring the toolbar') . '
'; + $output .= '
' . t('When CKEditor is chosen from the Text editor drop-down menu, its toolbar configuration is displayed. You can add and remove buttons from the Active toolbar by dragging and dropping them, and additional rows can be added to organize the buttons.') . '
'; + $output .= '
' . t('Formatting and pasting content') . '
'; + $output .= '
' . t('CKEditor only allow users to format and paste content in accordance with the filter configuration of the specific text format. If a text format excludes certain HTML tags, the corresponding toolbar buttons are not displayed to users when they edit a text field in this format. For more information see the Filter help page.', array('@filter' => url('admin/help/filter'))) . '
'; + $output .= '
' . t('Toggling between formatted text and HTML source') . '
'; + $output .= '
' . t('If the Source button is available in the toolbar, users can click this button to disable the visual editor and edit the HTML source directly. Allowed HTML formatting will be displayed accordingly after toggling back to the visual editor, independent on whether buttons for these tags are available in the toolbar.') . '
'; + $output .= '
'; + return $output; + } +} + +/* * Implements hook_library_info(). */ function ckeditor_library_info() {