diff --git a/core/modules/ckeditor/ckeditor.module b/core/modules/ckeditor/ckeditor.module old mode 100644 new mode 100755 index 4ca9956..a367e75 --- 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 toolbar for text fields that allow users to format content by using buttons instead of typing HTML tags, thereby creating 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 and Filter help pages.', 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. Formatting buttons for HTML tags that are not allowed, are not displayed to users when they edit a text field. 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, then users can switch between formatted text and HTML source code. In the source code view, users can format content by typing HTML tags even if no appropriate button is available in the toolbar. Allowed HTML formatting will be displayed appropriately after toggling back to the formatted text view.') . '
'; + $output .= '
'; + return $output; + } +} + +/* * Implements hook_library_info(). */ function ckeditor_library_info() {