'. t('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 %fckconfigjs 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', '%fckconfigjs' => 'fckconfig.js', )) .'

'; break; case 'admin/settings/fckeditor/editg': case 'admin/settings/fckeditor/add': $output = '

'. 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; case 'admin/settings/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.', array( '!wysiwyg' => ''. t('WYSIWYG') .'', )) .'

'. '

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

'. '

'. 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 %accesspermission !permissionlink will be able to use FCKeditor.', array( '%accesspermission' => t('access fckeditor'), '!permissionlink' => l(t('permission'), '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.', array( '!wysiwyg' => ''. t('WYSIWYG') .'', )) .'

'; $output .= '

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

'; $output .= '

'. t('Configuration') .'

'; $output .= '
    '; $output .= '
  1. '. t('Go to the !fckeditorlink and download the latest version of FCKeditor. Then uncompress the contents of the fckeditor directory of the downloaded file to %fckeditordir.', array( '!fckeditorlink' => l(t('FCKeditor homepage'), '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 !adminpath. See the @sectionname section how to enable the file browser feature.', array( '!adminpath' => l(t('Administer') .' > '. t('User management') .' > '. t('Permissions'), 'admin/user/permissions'), '@sectionname' => t('How to enable the built-in file browser'), )) .'
  6. '; $output .= '
  7. '. t('Under !adminpath, 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( '!adminpath' => l(t('Administer') .' > '. t('Site configuration') .' > '. t('FCKeditor'), 'admin/settings/fckeditor'), )) .'
  8. '; $output .= '
  9. '. t('For the Rich Text Editing to work you also need to configure your !filterlink for the users that may access Rich Text Editing. Either grant those users Full HTML access or use the following:', array( '!filterlink' => l(t('filters'), 'admin/settings/filters'), )) . '
    '. htmlspecialchars('




      1.  
        ') .''; $output .= '
      2. '. t('To have a better control over line breaks, you should disable %settingname in the chosen filter (recommended).', array( '%settingname' => t('Line break converter'), )) .'
      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 %settingname setting.', array( '%settingname' => t('Use inclusion or exclusion mode'), )) .'

        '; $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 %fieldname on page %pathname would thus be addressed as %result. 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 (\).', array( '%fieldname' => 'edit-log', '%pathname' => 'node/add/page', '%result' => 'node/add/page.edit-log', )) .'

        '; $output .= ''. t('Some examples:') .''; $output .= '
          '; $output .= '
        • node/add/page: '. t('matches all fields on %pathname', array('%pathname' => 'node/add/page')) .'
        • '; $output .= '
        • *.edit-log: '. t('matches all fields called %fieldname on any page', array('%fieldname' => 'edit-log')) .'
        • '; $output .= '
        • blog@*.edit-body: '. t('matches all fields called %fieldname on pages related to node type %typename', array('%fieldname' => 'edit-body', '%typename' => 'blog')) .'
        • '; $output .= '
        • forum@*.*: '. t('matches all fields on pages related to node type %nodetype', array('%nodetype' => 'forum')) .'
        • '; $output .= '
        • node/add/*: '. t('matches all fields on pages such as %pathname1, %pathname2, etc.', array('%pathname1' => 'node/add/page', '%pathname2' => 'node/add/story')) .'
        • '; $output .= '
        • node/add/*.edit-log: '. t('matches all %fieldname fields on pages such as %pathname1, %pathname2, etc.', array('%fieldname' => 'edit-log', '%pathname1' => 'node/add/page', '%pathname2' => 'node/add/story')) .'
        • '; $output .= '
        • node/add/*.edit-user-*: '. t('matches fields starting with %fieldname on pages starting with %pathname', array('%fieldname' => 'edit-user-', '%pathname' => 'node/add/')) .'
        • '; $output .= '
        '; $output .= '

        '. t('Troubleshooting') .'

        '; $output .= '

        '; $output .= t('Take a look at !listlink when installing FCKeditor.', array('!listlink' => l(t('list of common problems'), 'http://drupal.fckeditor.net/troubleshooting'))); $output .= ' '. t('If you are looking for more information, have any trouble in configuration or if you found an issue, please visit the !officiallink.', array('!officiallink' => l(t('official project page'), 'http://drupal.org/project/fckeditor'))); $output .= ' '. t('More information about how to tune up FCKeditor for your theme can be found !herelink.', array('!herelink' => l(t('here'), '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:', array('%fckeditor.config.js' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor.config.js')) .'
          '."\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 .= '
        5. '. t('Note that the <--pagebreak--> tag is not supported by default in Drupal. You should install the !paginglink module to enable the <!--pagebreak--> tag support. Please refer to the Paging module documentation for detailed installation instructions.', array('!paginglink' => l(t('Paging'), 'http://drupal.org/project/paging'))) .'
        6. '; $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 !imcelink, !iblink or !webfmlink.', array( '!imcelink' => l(t('IMCE'), 'http://drupal.org/project/imce'), '!iblink' => l(t('Image Browser'), 'http://drupal.org/project/imagebrowser'), '!webfmlink' => l(t('Web File Manager'), 'http://drupal.org/project/webfm'), )) .'
        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).') .'
          '; $output .= ' '. t('Add this code:') .'
          '; $output .= '
            require_once \'../../../../../filemanager.config.php\';
          '; $output .= ' '. t('straight below this line:'); $output .= '
            $Config[\'UserFilesAbsolutePath\'] = \'\' ;
          '; $output .= ' '. t('The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).'); $output .= '
        2. '; $output .= '
        3. '. t('Locate file named %settingsphp inside your drupal directory and set %cookiedomain variable to the appropriate domain (remember to uncomment that line). If you not do this, FCKeditor will claim that file browser is disabled.', array('%settingsphp' => 'settings.php', '%cookiedomain' => '$cookie_domain')) .'
        4. '; $output .= '
        5. '. t('Enabling file uploads is a security risk. That\'s why you have to grant a separate !permissionlink to enable the file browser to certain groups (assign the %uploadpermission permission).', array('!permissionlink' => l(t('permission'), 'admin/user/permissions'), '%uploadpermission' => t('allow fckeditor file uploads'))) .'
        6. '; $output .= '
        7. '. t('Lastly, adjust the %filebrowsersection for each !profilelink: set %filebrowsertypesetting to %builtinoption', array('!profilelink' => l(t('profile'), 'admin/settings/fckeditor'), '%filebrowsersection' => t('File browser settings'), '%filebrowsertypesetting' => t('File browser type'), '%builtinoption' => t('Built-in file browser'))) .'
        8. '; $output .= '
        '; $output .= '

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

        '; $output .= '

        '. t('Image Assist version 1 and 2 can be integrated with FCKeditor. It is no longer necessary to copy a Javascript file.') .'

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