'. t('The Global Profile allows you to define settings that are common for all profiles. Values defined in other profiles will be appended to the global configuration. This way you can avoid repeating some of the settings that are usually the same in each profile.') .'

'; break; } else if (!empty($arg[3]) && in_array($arg[3], array("add", "edit"))) { $output = '

'. t('Note: FCKeditor is highly configurable. The most commonly used features are listed below. If you want to take a look at all available settings, open "!fckconfig" and then customize "!fckeditor_config" to your needs. This is also the only way to define new toolbar sets. It is advised to not edit "fckconfig.js" because you may overwrite it accidentally when you update the editor.', array('!fckconfig' => drupal_get_path('module', 'fckeditor') ."/fckeditor/fckconfig.js", '!fckeditor_config' => drupal_get_path('module', 'fckeditor') ."/fckeditor.config.js")) .'

'; break; } else if (!empty($arg[3]) && in_array($arg[3], array("delete", "deleteg"))) { break; } $output = '

'. t('The FCKeditor module allows Drupal to replace textarea fields with a rich text or WYSIWYG editor. This editor brings many of the powerful functionalities of known desktop editors like Word to the web. It\'s relatively lightweight and doesn\'t require any kind of installation on the client computer.') .'

'. t('More information about the editor is located at the FCKeditor homepage. A small user guide is located at FCKeditor userguide.', array('!fckeditorlink' => 'http://www.fckeditor.net', '!userguidelink' => 'http://docs.fckeditor.net/FCKeditor/Users_Guide')) .'

'; $output .= '

'. t('Profiles can be defined based on user roles. A FCKeditor profile can define which pages receive this FCKeditor capability, what buttons or themes are enabled for the editor, how the editor is displayed, and a few other editor functions. It is possible also to define the Global Profile that will hold values that will be appended to all other profiles.') .'

'. t('Lastly, only users with the "access fckeditor" permission will be able to use FCKeditor.', array('!permission' => url('admin/user/permissions'))) .'

'; break; case 'admin/help#fckeditor': $output = '

'. t('The FCKeditor module allows Drupal to replace textarea fields with a rich text or WYSIWYG editor. This editor brings many of the powerful functionalities of known desktop editors like Word to the web. It\'s relatively lightweight and doesn\'t require any kind of installation on the client computer.') .'

'. t('More information about the editor is located at the FCKeditor homepage. A small user guide is located at FCKeditor userguide.', array('!fckeditorlink' => 'http://www.fckeditor.net', '!userguidelink' => 'http://docs.fckeditor.net/FCKeditor/Users_Guide')) .'

'; $output .= '

'. t('Configuration') .'

'; $output .= '
    '; $output .= '
  1. '. t('Go to the FCKeditor homepage and download the latest version of FCKeditor. Then uncompress the contents of the "fckeditor" directory of the downloaded file to %fckeditordir.', array('!fckeditorlink' => 'http://www.fckeditor.net/download', '%fckeditordir' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor/')) .'
  2. '; $output .= '
  3. '. t("Enable the module as usual from Drupal's admin pages.") .'
  4. '; $output .= '
  5. '. t('Grant permissions for use of FCKeditor in Administer > User Management > Permissions. See the "How to enable the built-in file browser" section how to enable the file browser feature.', array('!path2' => url('admin/user/permissions'))) .'
  6. '; $output .= '
  7. '. t('Under Administer > Site configuration > FCKeditor, adjust the fckeditor profiles. In each profile you can choose which textareas will be replaced by FCKeditor, select default toolbar and configure some more advanced settings.', array('!path1' => url('admin/settings/fckeditor'))) .'
  8. '; $output .= '
  9. '. t('For the Rich Text Editing to work you also need to configure your filters for the users that may access Rich Text Editing. Either grant those users Full HTML access or use the following:
    !filter.', array('!filterlink' => url('admin/settings/filters'), '!filter' => htmlentities('




      1.  
        '))) .''; $output .= '
      2. '. t('To have a better control over line breaks, you should disable "Line break converter" in the chosen filter (recommended).') .'
      3. '; $output .= '
      4. '. t('Modify the fckeditor.config.js file to custom your needs (optional). You may copy the needed configuration lines from the default FCKeditor configuration settings ("!fckconfig"), the lines in fckeditor.config.js will override most settings.', array('!fckconfig' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor/fckconfig.js')) .'
      5. '; $output .= ''; $output .= ''; $output .= '

        '. t('Defining field inclusion/exclusions') .'

        '; $output .= '

        '. t('In order to specifically display FCKeditor on those text areas on which you need it, the FCKeditor module provides a powerfull method to define fields that should be enhanced with FCKeditor. The first choice you have to make is whether you want to display FCKeditor on all textareas and define a list of exceptions, or if you don\'t want to display FCKeditor unless it is specifically enabled. This choice is made in the "Use inclusion or exclusion mode" setting.') .'

        '; $output .= '

        '. t('Next, the list of exceptions has to be defined. This list follows a specific syntax: the path to a field is defined by specifying the content type followed by "@" character, specifying the path followed by dot and appending the field name at the end. You may decide to not use the content type. The field "edit-log" on page "node/add/page" would thus be addressed as "node/add/page.edit-log". You can use wildcards * and ? anywhere in this line. If you have a dot in your field name and it causes problems, you can escape it with a slash (\).') .'

        '; $output .= ''. t('Some examples:') .''; $output .= '
          '; $output .= '
        • '. t('"node/add/page": matches all fields on "node/add/page".') .'
        • '; $output .= '
        • '. t('"*.edit-log": matches all fields called edit-log on any page.') .'
        • '; $output .= '
        • '. t('"blog@*.edit-body": matches all fields of type "blog" called edit-log, on any page.') .'
        • '; $output .= '
        • '. t('"forum@*.*": matches all fields of type "forum" on any page.') .'
        • '; $output .= '
        • '. t('"node/add/*": matches all fields on pages such as "node/add/page", "node/add/story", etc.') .'
        • '; $output .= '
        • '. t('"node/add/*.edit-log": matches all edit-log fields on pages such as "node/add/page", "node/add/story", etc.') .'
        • '; $output .= '
        • '. t('"node/add/*.edit-user-*": matches fields starting with "edit-user-" on pages starting with "node/add/"') .'
        • '; $output .= '
        '; $output .= '

        '. t('Troubleshooting') .'

        '; $output .= '

        '; $output .= t('Take a look at list of common problems when installing FCKeditor.', array('!list' => 'http://drupal.fckeditor.net/troubleshooting')); $output .= ' '. t('If you are looking for more information, have any troubles in configuration or if you found an issue, please visit the official project page.', array('!official' => 'http://drupal.org/project/fckeditor')); $output .= ' '. t('More information about how to tune up FCKeditor for your theme can be found here.', array('!tricks' => 'http://drupal.fckeditor.net/tricks')); $output .= '

        '; $output .= '

        '. t('Plugins: Teaser break and Pagebreak') .'

        '; $output .= '

        '. t('By default, FCKeditor module comes with two plugins that can handle teaser break (<!--break-->) and pagebreak (<!--pagebreak-->). You can enable any (or even both) of them.') .'

        '; $output .= '
          '; $output .= '
        1. '. t('Open "!fckeditor.config.js" and uncomment these three lines:
          !code
          ', array('!fckeditor.config.js' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor.config.js', '!code' => "\nFCKConfig.PluginsPath = '../../plugins/';\nFCKConfig.Plugins.Add('drupalbreak');\nFCKConfig.Plugins.Add('drupalpagebreak');\n")) .'
        2. '; $output .= '
        3. '. t('The second step is to add buttons to the toolbar (in the same file). The button names are: "DrupalBreak", "DrupalPageBreak". For example if you have a toolbar with an array of buttons defined as follows:
          !buttons1
          simply add those two buttons at the end of array (remember about single quotes):
          !buttons2
          ', array('!buttons1' => "['Image','Flash','Table','Rule','SpecialChar']", '!buttons2' => "['Image','Flash','Table','Rule','SpecialChar', 'DrupalBreak', 'DrupalPageBreak']")) .'
        4. '; $output .= '
        '; $output .= '

        '. t('Uploading images and files') .'

        '; $output .= '

        '. t('There are three ways for uploading files:') .'

        '; $output .= '
          '; $output .= '
        1. '. t('By using the built-in file browser.') .'
        2. '; $output .= '
        3. '. t('By using a module like IMCE.', array('!imce' => 'http://drupal.org/project/imce')) .'
        4. '; $output .= '
        5. '. t('By using the core upload module.') .'
        6. '; $output .= '
        '; // The rest is untranslated for the moment. $output .= '

        '. t('How to enable the built-in file browser') .'

        '; $output .= '

        '. t('The editor gives the end user the flexibility to create a custom file browser that can be integrated on it. The included file browser allows users to view the content of a specific directory on the server and add new content to that directory (create folders and upload files).') .'

        '; $output .= '
          '; $output .= '
        1. '; $output .= ' '. t('To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in %config.', array('%config' => base_path() . drupal_get_path('module', 'fckeditor') ."/fckeditor/editor/filemanager/connectors/php/config.php")); $output .= ' '. t('In this file you will need to enable the file browser by adding one line that includes a file with the special authentication function for Drupal ("filemanager.config.php").') .'
          '. t('Add this code:
          !code1
          straight below this line:
          !code2
          The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).', array('!code1' => ' require_once \'../../../../../filemanager.config.php\';', '!code2' => " \$Config['UserFilesAbsolutePath'] = '' ;")); $output .= '
        2. '; $output .= '
        3. '. t('Locate file named "settings.php" inside your drupal directory (usually "sites/default/settings.php") and set $cookie_domain variable to the appropiate domain (remember to uncomment that line). If you not do this, FCKeditor will claim that file browser is disabled.') .'
        4. '; $output .= '
        5. '. t('Enabling file uploads is a security risk. That\'s why you have to grant a separate permission to enable the file browser to certain groups (assign the "allow fckeditor file uploads" permissions).', array('!link' => url('admin/user/permissions'))) .'
        6. '; $output .= '
        7. '. t('Lastly, adjust the "File browser settings" for each profile: set "File browser type" to "Built-in filebrowser".', array('!profile' => url('admin/settings/fckeditor'))) .'
        8. '; $output .= '
        '; $output .= '

        '. t('Modules: Image Assist') .'

        '; $output .= '

        '. t('Image Assist can be integrated with FCKeditor. To do this, simply copy the "!iaf1" file to "!iaf2".', array('!iaf1' => drupal_get_path('module', 'fckeditor') .'/img_assist_fckeditor.js', '!iaf2' => drupal_get_path('module', 'img_assist') .'/img_assist_fckeditor.js')) .'

        '; break; } return !empty($output) ? $output : ''; }