summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWiktor Walc2008-02-12 17:54:21 (GMT)
committer Wiktor Walc2008-02-12 17:54:21 (GMT)
commitc01081e75decc6f87aaf18df5a1fd03ff5a651cf (patch)
treec36a3d74129ef9b381d61f9df11d24cb6dbaa615
parent3e8ab61bf926ff3768b98c2405d883628eee5a10 (diff)
Ported 5.2BETA to Drupal6
-rw-r--r--CHANGELOG.txt55
-rw-r--r--README.txt270
-rw-r--r--fckeditor.info1
-rw-r--r--fckeditor.install135
-rw-r--r--fckeditor.module1038
-rw-r--r--fckeditor.utils.js17
-rw-r--r--po/fckeditor.pot616
-rw-r--r--po/it.po282
-rw-r--r--po/nl.po202
-rw-r--r--po/pl.po553
10 files changed, 1388 insertions, 1781 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index faabfa7..37e913c 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,38 +1,25 @@
$Id$
+-- 2008-02-12 version drupal-6-x-1-1-beta
+* fixed issues with handling multiple user profiles, it is now possible
+ to define role precedence
+* introduced the global profile, it is possible to enable/disable FCKeditor globally
+ for all profiles in one place
+* it is possible to use paths and fields to exclude/include FCKeditor to have better control
+ over where FCKeditor should appear
+* instant integration with Image Assist
+* UserFilesPath and UserFilesAbsolutePath are now configurable in administration panel
+* path to fckstyles.xml is configurable in administration panel
+* textarea remains resizeable when FCKeditor works in popup mode
+* improved profile validation
+* translated strings are now properly escaped
+* fixed issue with break tag appearing at the beginning of a node
+* separate config file included - makes configuration of built-in file browser much easier
+* fixed issue with justifying
+* added possibility to define custom javascript configuration for selected profiles
+* added possibility to create profile even if there is no role with 'access fckeditor' permission
+* FCKeditor module now passes the Code review test
+
-- 2007-11-15 version drupal-6-x-1-0-dev
* ported 5.x-2.x module
-* improved teaser plugin integration (break button is enabled by default)
-
--- 2007-10-26 version drupal-5-x-2-0-dev
-* new version number 2.0
-* user settings are grouped into profiles, so it is possible now to disable FCKeditor for admin.
-* each user may adjust his own settings (e.g disable/enable toggle, choose language, toolbar, skin etc.)
-* added new way of enabling/disabling FCKeditor (toggle)
-* much much more configuration options are now available
-* module uses built-in function in FCKeditor to check browser compatibility
- so as Opera and Safari are now supported (since FCKeditor 2.5, Opera 9.5 and Safari 3.0)
-* FCkeditor module comes now with two plugins for teaser break and pagebreak
-* updated the readme file
-* added polish translation
-
--- 2007-08-03 version drupal-5-x-1-3-beta
-* new version number 1.3
-
--- 2007-08-03 version drupal-5-x-1-2-dev
-* Added link to settings for easier navigation
- - http://drupal.org/node/125520
-* Add custom xml stylesheet if it exists.
- - http://drupal.org/node/133259
-* Integrate IMCE if it exists and is prefered - and some more logic
- for the configuration
- - http://drupal.org/node/119008
-* changed the wording of some options
- - http://drupal.org/node/117860
-* Added path exclusion mode
- - Notice: you must re-save your settings if you used path inclusion
- in the previous version
-* Added some more comments for people who like to see what goes on
-* Updated the readme
-* Started this changelog, for older changes uhm...
- they're in cvs I guess
+* improved teaser plugin integration (break button is enabled by default) \ No newline at end of file
diff --git a/README.txt b/README.txt
index 5ae98ad..d36a4e8 100644
--- a/README.txt
+++ b/README.txt
@@ -8,11 +8,6 @@ This HTML text editor brings many of the powerful functions 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.
-Compatibility
--------------
-The integrated File Browser needs a bit of manual configuration,
-more information about this in the included in this readme.txt file
-
Required components
-------------------
To use FCKeditor in Drupal, you will need to download the FCKeditor
@@ -28,6 +23,7 @@ Licensed under the terms of the GNU Lesser General Public License:
For further information visit:
http://www.fckeditor.net/
+ http://drupal.fckeditor.net
Requirements
------------
@@ -35,171 +31,113 @@ Requirements
- PHP 4.3.0 or greater
- FCKeditor 2.3.x or greater (http://www.fckeditor.net/)
-Installation
-------------
- 1. Copy the module fckeditor folder to modules/.
- 2. Download FCKeditor from http://www.fckeditor.net and copy
- the distribution files (the contents of the "fckeditor" directory
- from the FCKeditor distribution file) to
- modules/fckeditor/fckeditor.
-
- A quick check to see if it is correct: the files 'COPY_HERE.txt',
- 'fckconfig.js' and also the directory 'editor' must exist in the
- same directory,
-
- The correct directory structure is as follows:
-
- modules
- |--fckeditor
- |--fckeditor
- |--_samples
- |--editor
-
- 3. See 'How to enable the File Browser' for additional instructions.
-
- Also read the security note in this readme
-
- Alternatives to the built-in file browser are the IMCE module and
- copying the image url into the url textfield.
-
Configuration
--------------
- 1. Modify the fckeditor.config.js file to customize the toolbars to
- your needs (optional).
-
- You may also copy the needed configuration lines from the default
- FCKeditor configuration settings
- (modules/fckeditor/fckeditor/fckconfig.js), the lines in
- fckeditor.config.js will override most settings.
-
- It is not advised to change the default toolbars in the
- configuration settings (modules/fckeditor/fckeditor/fckconfig.js)
- because those are included in the FCKeditor package and might
- change without notice when you update the editor.
-
- 2. Enable the module as usual from Drupal's admin pages.
-
- 3. Grant permissions for use of FCKeditor in
- Administer > User Management > Access Control
-
- 4. Under Administer > Settings > FCKeditor, create 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.
-
- 5. 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:
-
- <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area>
- <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em>
- <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote>
- <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
-
- 6. To have a better control over line breaks, you may disable "Line break converter"
- in the chosen filter.
-
-How to enable the File Browser
----------------------------------------------------
-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).
-
-To enable the file browser you need to edit the connector
-configuration file in your fckeditor module directory, the file should
-be in:
-/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
-and
-/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
-(FCKeditor 2.3.x - 2.4.x)
-
-or
-
-/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
-(FCKeditor 2.5+)
-
-In this file you will need to enable the file browser:
-$Config['Enabled'] = true ;
-
-To use the drupal files directory you also need to adjust the following
-variables in the connector configuration:
- $Config['UserFilesPath']
-and:
- $Config['UserFilesAbsolutePath']
-
-Furthermore, you will need to create a "File", "Image", "Flash" and
-"Media" subdirectory in your drupal files directory. These directories
-must have the same privileges as the drupal files directory. In some
-cases these directories must be world writable (chmod 0777).
-
-Security
---------
-Note that enabling file uploads is a security risk. That's why there
-is a separate permission in Administer > Access Control for enabling
-the file browser to certain groups.
-
-Making File Browser more secure
--------------------------------
-Please be aware that enabling file browser simply by setting
- $Config['Enabled'] = true ;
-theoretically enables it for each user (with a little bit of hackery,
-it is possible to use file browser without appropiate Drupal permissions).
-The more secure way of enabling file browser:
-
- 1. instead of setting
- $Config['Enabled'] = true ;
- add the following code:
-
- $drupal_path = "../../../../../../../../..";
- if(!file_exists($drupal_path . '/includes/bootstrap.inc')) {
- $drupal_path = "../..";
- do {
- $drupal_path .= "/..";
- $depth = substr_count($drupal_path, "..");
- false;
- }
- while(!($bootstrapFileFound = file_exists($drupal_path . '/includes/bootstrap.inc')) && $depth<10);
- }
- if (!isset($bootstrapFileFound) || $bootstrapFileFound) {
- $cwd = getcwd();
- chdir($drupal_path);
- require_once './includes/bootstrap.inc';
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
- $Config['Enabled'] = user_access('allow fckeditor file uploads');
- chdir($cwd);
- }
-
- straight after
- $Config['Enabled'] = false ;
-
- This code enables file browser only to users that have "allow fckeditor file uploads" permission.
- note: if you don't set $drupal_path correctly, FCKeditor will find it out by itself.
-
- 2. as of Drupal 5.2, additional step is required:
- 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)
-
+-------------------
+ 1. Enable the module as usual from Drupal's admin pages.
+ 2. Grant permissions for use of FCKeditor in Administer > User Management > Access Control
+ 3. Under Administer > Settings > FCKeditor, create 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
+ 4. 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:
+ <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr>
+ <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong>
+ <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code>
+ <cite> <embed> <object> <strike> <caption>.
+ 5. To have a better control over line breaks, you may disable Line break converter in the chosen filter (recommended).
+ 6. Modify the fckeditor.config.js file to custom your needs (optional).
+ You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js),
+ the lines in fckeditor.config.js will override most settings.
+
+Installation troubleshooting
+----------------------------
+If your FCKeditor does not show you must check if all files are extracted correctly.
+The directory /drupal5b/modules/fckeditor/fckeditor/ should have the following files:
+fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml and a directory named editor.
+The correct directory structure is as follows:
+
+ modules
+ fckeditor
+ fckeditor.module
+ fckeditor
+ _samples
+ editor
+ COPY_HERE.txt
+ fckconfig.js
+ ...
+
Plugins: Teaser break and Pagebreak
-----------------------------------
-By default, FCKeditor module comes with two plugins that can handle teaser break (<!--break-->) and pagebreak (<!--pagebreak-->).
+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.
-To do this, open fckeditor.config.js and uncomment these three lines:
-
- FCKConfig.PluginsPath = '../../plugins/' ;
- FCKConfig.Plugins.Add( 'drupalbreak' ) ;
- FCKConfig.Plugins.Add( 'drupalpagebreak' )
-
-The second step is to add the buttons to 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:
- ['Image','Flash','Table','Rule','SpecialChar']
-simply add those two buttons at the end of array:
- ['Image','Flash','Table','Rule','SpecialChar', 'DrupalBreak', 'DrupalPageBreak']
-(remember about single quotes).
+
+ 1. Open /drupal5b/modules/fckeditor/fckeditor.config.js and uncomment these three lines:
+
+ FCKConfig.PluginsPath = '../../plugins/' ;
+ FCKConfig.Plugins.Add( 'drupalbreak' ) ;
+ FCKConfig.Plugins.Add( 'drupalpagebreak' ) ;
+
+
+ 2. 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:
+
+ ['Image','Flash','Table','Rule','SpecialChar']
+
+ simply add those two buttons at the end of array:
+
+ ['Image','Flash','Table','Rule','SpecialChar', 'DrupalBreak', 'DrupalPageBreak']
+
+ (remember about single quotes).
+
+Uploading images and files
+--------------------------
+
+There are three ways of uploading files: By using the built-in file browser, by using a module like IMCE or using the core upload module.
+
+How to enable the file browser
+------------------------------
+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).
+
+ 1. To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:
+
+ /drupal5b/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
+ (FCKeditor 2.5+)
+
+ or
+
+ /drupal5b/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
+ and
+ /drupal5b/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
+ (FCKeditor 2.3.x - 2.4.x)
+
+ In this file(s) you will need to enable the file browser by adding one line that includes file with the special authentication function for Drupal (filemanager.config.php). Add this code:
+
+ require_once "../../../../../filemanager.config.php";
+ (FCKeditor 2.5+)
+
+ or
+
+ require_once "D:\\xampp\\htdocs\\drupal5b\\modules\\fckeditor\\filemanager.config.php"
+ (FCKeditor 2.3.x - 2.4.x)
+
+ straight below this line:
+
+ $Config['UserFilesAbsolutePath'] = '' ;
+
+ The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).
+
+ 2. As of Drupal 5.2, additional step is required: 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
+ 3. 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.
+ 4. Lastly, adjust the File browser settings for each profile.
+
+Modules: Image Assist
+---------------------
+Image Assist can be integrated with FCKeditor.
+To do this, simply copy the modules/fckeditor/img_assist_fckeditor.js file to modules/img_assist/img_assist_fckeditor.js.
Help & Contribution
-------------------
diff --git a/fckeditor.info b/fckeditor.info
index b563aff..0647bd9 100644
--- a/fckeditor.info
+++ b/fckeditor.info
@@ -1,3 +1,4 @@
; $Id$
name = FCKeditor
description = "Enables the usage of FCKeditor (WYSIWYG) instead of plain text fields."
+
diff --git a/fckeditor.install b/fckeditor.install
index 691a7d4..212f4d7 100644
--- a/fckeditor.install
+++ b/fckeditor.install
@@ -46,6 +46,42 @@ function fckeditor_install() {
$arr['min_rows'] = variable_get('fckeditor_minimum_rows', 1);
$arr['excl_mode'] = variable_get('fckeditor_exclude_toggle', 0);
+ //appearance
+ $arr['default'] = "t";
+ $arr['show_toggle'] = "t";
+ $arr['popup'] = variable_get('fckeditor_popup', 0) ? "t" : "f";
+ $arr['skin'] = "default";
+ $arr['toolbar'] = variable_get('fckeditor_default_toolbar', 'DrupalBasic');
+ $arr['expand'] = variable_get('fckeditor_toolbar_start_expanded', 1) ? "t" : "f";
+ $arr['width'] = variable_get("fckeditor_width", "100%");
+ $arr['lang'] = "en";
+ $arr['auto_lang'] = "t";
+
+ //output
+ $arr['enter_mode'] = "p";
+ $arr['shift_enter_mode'] = "br";
+ $arr['font_format'] = 'p;div;pre;address;h1;h2;h3;h4;h5;h6';
+ $arr['format_source'] = "t";
+ $arr['format_output'] = "t";
+
+ //css
+ $arr['css_mode'] = "theme";
+ $arr['css_path'] = variable_get("fckeditor_stylesheet", "");
+
+ //upload
+ //get permissions here like in _update_role_permissions
+ $arr['upload_basic'] = variable_get("fckeditor_upload_basic", 0) ? "t" : "f";
+ $arr['upload_advanced'] = variable_get('fckeditor_upload_advanced', 0) ? "t" : "f";
+ $arr['user_choose'] = "f";
+
+ db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "Default", serialize($arr));
+
+ //insert settings for advanced role
+ $arr['toolbar'] = variable_get('fckeditor_advanced_toolbar', 'DrupalFiltered');
+ db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "Advanced", serialize($arr));
+
+ $arr = array();
+
//exclude by default some known textareas where HTML is not expected
//edit-recipients //contact module
//edit-reply //contact module
@@ -82,39 +118,7 @@ function fckeditor_install() {
"edit-user-registration-help\n".
"edit-user-picture-guidelines\n";
- //appearance
- $arr['default'] = "t";
- $arr['show_toggle'] = "t";
- $arr['popup'] = variable_get('fckeditor_popup', 0) ? "t" : "f";
- $arr['skin'] = "default";
- $arr['toolbar'] = variable_get('fckeditor_default_toolbar', 'DrupalBasic');
- $arr['expand'] = variable_get('fckeditor_toolbar_start_expanded', 1) ? "t" : "f";
- $arr['width'] = variable_get("fckeditor_width", "100%");
- $arr['lang'] = "en";
- $arr['auto_lang'] = "t";
-
- //output
- $arr['enter_mode'] = "p";
- $arr['shift_enter_mode'] = "br";
- $arr['font_format'] = 'p;div;pre;address;h1;h2;h3;h4;h5;h6';
- $arr['format_source'] = "t";
- $arr['format_output'] = "t";
-
- //css
- $arr['css_mode'] = "theme";
- $arr['css_path'] = variable_get("fckeditor_stylesheet", "");
-
- //upload
- //get permissions here like in _update_role_permissions
- $arr['upload_basic'] = variable_get("fckeditor_upload_basic", 0) ? "t" : "f";
- $arr['upload_advanced'] = variable_get('fckeditor_upload_advanced', 0) ? "t" : "f";
- $arr['user_choose'] = "f";
-
- db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "Default", serialize($arr));
-
- //insert settings for advanced role
- $arr['toolbar'] = variable_get('fckeditor_advanced_toolbar', 'DrupalFiltered');
- db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "Advanced", serialize($arr));
+ db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "FCKeditor Global Profile", serialize($arr));
}
/**
@@ -162,6 +166,71 @@ function fckeditor_schema() {
}
/**
+ * Update from 6.x-1.0 to 6.x-1.1
+ *
+ */
+function fckeditor_update_6110() {
+ $ret = array();
+
+ $result = db_query('SELECT * FROM {fckeditor_settings}');
+ $global_profile_found = false;
+ while ($data = db_fetch_object($result)) {
+ if ($data->name == "FCKeditor Global Profile") {
+ $global_profile_found = true;
+ }
+ if ($data->settings) {
+ $settings = unserialize($data->settings);
+ }
+ if (isset($settings['excl_mode'], $settings['excl_list']) && !empty($settings['excl_list'])) {
+ switch ($settings['excl_mode']) {
+ case 0:
+ // normal exclusion based on the id
+ $settings['excl_fields'] = $settings['excl_list'];
+ $settings['excl_mode'] = 0;
+ break;
+ case 1:
+ //normal inclusion based on the id
+ $settings['excl_fields'] = $settings['excl_list'];
+ $settings['excl_mode'] = 1;
+ break;
+ case 2:
+ //path exclusion
+ $settings['excl_paths'] = $settings['excl_list'];
+ $settings['excl_mode'] = 0;
+ break;
+ case 3:
+ //path inclusion
+ $settings['excl_paths'] = $settings['excl_list'];
+ $settings['excl_mode'] = 1;
+ break;
+ }
+ unset($settings['excl_list']);
+ }
+ if (isset($settings['simple_incl_mode'], $settings['simple_incl_list']) && !empty($settings['simple_incl_list'])) {
+ switch ($settings['simple_incl_mode']) {
+ case 1:
+ //normal inclusion based on the id
+ $settings['simple_incl_fields'] = $settings['simple_incl_list'];
+ break;
+ case 3:
+ //path inclusion
+ $settings['simple_incl_paths'] = $settings['simple_incl_list'];
+ break;
+ }
+ unset($settings['simple_incl_mode']);
+ unset($settings['simple_incl_list']);
+ }
+
+ db_query("UPDATE {fckeditor_settings} SET settings='%s' WHERE name='%s'", serialize($settings), $data->name);
+ }
+
+ if (!$global_profile_found) {
+ db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", "FCKeditor Global Profile", serialize(array()));
+ }
+ return $ret;
+}
+
+/**
* Implementation of hook_uninstall()
*/
function fckeditor_uninstall() {
diff --git a/fckeditor.module b/fckeditor.module
index 023c7b9..df5c63f 100644
--- a/fckeditor.module
+++ b/fckeditor.module
@@ -1,6 +1,6 @@
<?php
// $Id$
-/*
+/**
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
@@ -40,101 +40,85 @@ define('FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME', 'DrupalBasic') ;
* Implementation of hook_help
*/
function fckeditor_help($path, $arg) {
+ if (strpos($path, 'admin/settings/fckeditor/edit/') === 0 || $path == 'admin/settings/fckeditor/add') {
+ $output = t("<p>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 <code>!fckconfig</code> and then customize <code>!fckeditor_config</code> to your needs. This is also the only way to define new toolbar sets. It is advised to not edit <code>fckconfig.js</code> because you may overwrite it accidentally when you update the editor.</p>", array('!fckconfig' => drupal_get_path('module', 'fckeditor') ."/fckeditor/fckconfig.js", '!fckeditor_config' => drupal_get_path('module', 'fckeditor') ."/fckeditor.config.js"));
+ }
+
switch ($path) {
case 'admin/settings/help#description':
$output = t("Enables the usage of FCKeditor (WYSIWYG editor) instead of plain text fields.");
break;
- case 'admin/settings/fckeditor/edit/Default':
- $output = t("<p>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 <code>!fckconfig</code> and then customize <code>!fckeditor_config</code> to your needs. This is also the only way to define new toolbar sets. It is advised to not edit <code>fckconfig.js</code> because you may overwrite it accidentally when you update the editor.</p>", array('!fckconfig' =>drupal_get_path('module', 'fckeditor')."/fckeditor/fckconfig.js", '!fckeditor_config'=>drupal_get_path('module', 'fckeditor')."/fckeditor.config.js"));
+ case 'admin/settings/fckeditor/addg':
+ case 'admin/settings/fckeditor/editg':
+ $output = t("<p>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.</p>");
break;
case 'admin/settings/fckeditor':
- $output = t("<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>",
+ $output = t("<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information about the editor is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>",
array(
'!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
- '!userguidelink' => l(t('FCKeditor userguide'), 'http://wiki.fckeditor.net/UsersGuide'))
+ '!userguidelink' => l(t('FCKeditor userguide'), 'http://docs.fckeditor.net/FCKeditor/Users_Guide'))
);
- $output .= t('<p>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.</p><p>Lastly, only users with the <code>!access1</code> <a href="!url">permission</a> will be able to use FCKeditor.</p>', array('!url' => url('admin/user/permissions'), '!access1' => t('access fckeditor')));
+ $output .= t('<p>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.</p><p>Lastly, only users with the <code>!access1</code> !permission will be able to use FCKeditor. </p>', array('!permission' => l(t('permission'), 'admin/user/permissions'), '!access1' => t('access fckeditor')));
break;
case 'admin/help#fckeditor':
$output = t("<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>",
array(
'!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
- '!userguidelink' => l(t('FCKeditor userguide'), 'http://wiki.fckeditor.net/UsersGuide'))
+ '!userguidelink' => l(t('FCKeditor userguide'), 'http://docs.fckeditor.net/FCKeditor/Users_Guide'))
);
$output .= t('<h3>Installation</h3><p>Go to the !fckeditorlink and download the latest version. Then uncompress the contents of the "fckeditor" directory of the downloaded file to %fckeditordir.</p>',
array(
- '!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
+ '!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net/download'),
'%fckeditordir' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor/')
);
- $output .= t('<h3>Installation troubleshooting</h3><p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>',
+ $output .= t('<h3>Configuration</h3><ol><li>Enable the module as usual from Drupal\'s admin pages.</li><li>Grant permissions for use of FCKeditor in <code>!path2</code></li><li>Under <code>!path1</code>, create 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 </li><li>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: <br/><code>!filter</code>. </li><li>To have a better control over line breaks, you may disable <code>Line break converter</code> in the chosen filter (recommended).</li><li>Modify the fckeditor.config.js file to custom your needs (optional).<br />You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li></ol>',
array(
- '!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
- '%fckeditordir' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor/')
- );
- $output .= t('The correct directory structure is as follows: <pre>!structure</pre>',array(
- '!structure'=>"modules\n fckeditor\n <em>fckeditor.module</em>\n fckeditor\n _samples\n editor\n <em>COPY_HERE.txt</em>\n <em>fckconfig.js</em>\n ..."
- ));
- $output .= t('<h3>Configuration</h3><ol><li>Modify the fckeditor.config.js file to custom your needs (optional).<br />You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li><li>Enable the module as usual from Drupal\'s admin pages.</li><li>Grant permissions for use of FCKeditor in <code>!path2</code></li><li>Under <code>!path1</code>, create 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 </li><li>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: <br/><code>!filter</code>. </li><li>To have a better control over line breaks, you may disable <code>Line break converter</code> in the chosen filter.</li></ol>',
- array(
- '!path1' => l(t('Administer > Settings > FCKeditor'),'admin/settings/fckeditor'),
- '!path2' => l(t('Administer > User Management > Access Control'),'admin/user/permissions'),
+ '!path1' => l(t('Administer > Settings > FCKeditor'), 'admin/settings/fckeditor'),
+ '!path2' => l(t('Administer > User Management > Access Control'), 'admin/user/permissions'),
'!filter' => htmlentities('<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area>
<hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em>
<b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote>
<pre> <address> <code> <cite> <embed> <object> <strike> <caption>'),
- '!filterlink'=> l(t('filters'), 'admin/settings/filters'))
+ '!filterlink' => l(t('filters'), 'admin/settings/filters'))
+ );
+ $output .= t('<h3>Installation troubleshooting</h3><p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>',
+ array(
+ '%fckeditordir' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor/')
);
+ $output .= t('The correct directory structure is as follows: <blockquote><pre>!structure</pre></blockquote>', array(
+ '!structure' => "modules\n fckeditor\n <em>fckeditor.module</em>\n fckeditor\n _samples\n editor\n <em>COPY_HERE.txt</em>\n <em>fckconfig.js</em>\n ..."
+ ));
$output .= t("<h3>Plugins: Teaser break and Pagebreak</h3><p>By default, FCKeditor module comes with two plugins that can handle teaser break (&lt;!--break--&gt;) and pagebreak (&lt;!--pagebreak--&gt;). You can enable any (or even both) of them.<ol><li>Open <code>!fckeditor.config.js</code> and uncomment these three lines: <pre>!code</pre></li><li>The second step is to add buttons to the toolbar (in the same file). The button names are: <code>DrupalBreak, DrupalPageBreak</code>. For example if you have a toolbar with an array of buttons defined as follows: <pre>!buttons1</pre> simply add those two buttons at the end of array: <pre>!buttons2</pre> (remember about single quotes).</li></ol></p>",
array(
- '!fckeditor.config.js' => base_path() . drupal_get_path('module', 'fckeditor') . 'fckeditor.config.js',
- '!code' => "
- FCKConfig.PluginsPath = '../../plugins/' ;
- FCKConfig.Plugins.Add( 'drupalbreak' ) ;
- FCKConfig.Plugins.Add( 'drupalpagebreak' ) ;
-",
- '!buttons1' => "['Image','Flash','Table','Rule','SpecialChar']",
- '!buttons2' => "['Image','Flash','Table','Rule','SpecialChar', 'DrupalBreak', 'DrupalPageBreak']",
+ '!fckeditor.config.js' => base_path() . drupal_get_path('module', 'fckeditor') .'/fckeditor.config.js',
+ '!code' => "
+ FCKConfig.PluginsPath = '../../plugins/' ;
+ FCKConfig.Plugins.Add( 'drupalbreak' ) ;
+ FCKConfig.Plugins.Add( 'drupalpagebreak' ) ;
+ ",
+ '!buttons1' => "['Image','Flash','Table','Rule','SpecialChar']",
+ '!buttons2' => "['Image','Flash','Table','Rule','SpecialChar', 'DrupalBreak', 'DrupalPageBreak']",
));
$output .= t('<h3>Uploading images and files</h3><p>There are three ways of uploading files: By using the built-in file browser, by using a module like !imce or using the core upload module.</p>',
array(
'!imce' => l(t('IMCE'), 'http://drupal.org/project/imce')
)
);
- $output .= t('<h3>Security</h3><p>Note that enabling file uploads is <strong>a security risk</strong>. That\'s why there is a !link in Administer > User Management > Access Control for enabling the file browser to certain groups.</p>', array('!link' => l(t('separate permission'),'admin/user/permissions')));
// the rest is untranslated for the moment
- $output .= t("<h3>How to enable the file browser</h3><p>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).</p><p>To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:<br /><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)<br/><br/> or <code>!config3</code> <br/> (FCKeditor 2.5+) </p><p>In this file you will need to enable the file browser:<br /><code>&#36;Config['Enabled'] = true;</code></p><p>To use the drupal files directory you also need to adjust the following variables in the connector configuration:<br/><code>&#36;Config['UserFilesPath']</code> and <code>&#36;Config['UserFilesAbsolutePath']</code>.<br/>Point <code>&#36;Config['UserFilesPath']</code> to the path to drupal &quot;files&quot; directory and set <code>&#36;Config['UserFilesAbsolutePath']</code> to the absolute path to the same directory.</p><p>Furthermore, you will need to create a <em>'File'</em>, <em>'Image'</em>, <em>'Flash'</em> and <em>'Media'</em> subdirectory in your drupal files directory ('!filesdir'). These directories must have the same privileges as the drupal files directory. In some cases these directories must be world writable (chmod 0777).</p>",
+ $output .= t("<h3>How to enable the file browser</h3><p>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).</p><p><ol><li>To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:<blockquote><code>!config3</code> <br/> (FCKeditor 2.5+)<br/><br/> or <br/><br/><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)</blockquote></p><p>In this file(s) you will need to enable the file browser by adding one line that includes file with the special authentication function for Drupal (<code>filemanager.config.php</code>). Add this code: <blockquote><code>!code1</code><br/> (FCKeditor 2.5+)</blockquote> or <blockquote><code>!code2</code> <br/> (FCKeditor 2.3.x - 2.4.x)</blockquote> straight below this line: <blockquote><code>!code3</code></blockquote> The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).</p></li>",
array('!config1' => base_path() . drupal_get_path('module', 'fckeditor') ."/fckeditor/editor/filemanager/browser/default/connectors/php/config.php",
'!config2' => base_path() . drupal_get_path('module', 'fckeditor') ."/fckeditor/editor/filemanager/upload/php/config.php",
'!config3' => base_path() . drupal_get_path('module', 'fckeditor') ."/fckeditor/editor/filemanager/connectors/php/config.php",
'!filesdir' => file_directory_path(),
+ '!code1' => 'require_once "../../../../../filemanager.config.php";', //2.5
+ '!code2' => 'require_once "'. str_replace("\\", "\\\\", dirname(__FILE__) . DIRECTORY_SEPARATOR .'filemanager.config.php"'), //2.4
+ '!code3' => "\$Config['UserFilesAbsolutePath'] = '' ;",
)
- );
- $output .= t(<<<HEREDOC
-<h3>Making File Browser more secure</h3><p>Please be aware that enabling file browser simply by setting <code>&#36;Config['Enabled'] = true;</code> theoretically enables it for each user (with a little bit of hackery, it is possible to use file browser without appropiate Drupal permissions). The more secure way of enabling file browser is as follows:</p><ol><li>Instead of setting <br/> <code>&#36;Config['Enabled'] = true ;</code><br/> add the following code: <pre>!snippet</pre> straight after <code>&#36;Config['Enabled'] = false ;</code><br/>This code enables file browser only to users that have <a href="!url">!access1</a> permission.<br/>Note: if you don't set <code>&#36;drupal_path</code> correctly, FCKeditor will find it out by itself.</li><li>As of Drupal 5.2, additional step is required: <br/> locate file named <code>settings.php</code> inside your drupal directory (usually <code>sites/default/settings.php</code>) and set <code>&#36;cookie_domain</code> variable to the appropiate domain (remember to uncomment that line).</li></ol>
-HEREDOC
-,array(
- '!url' => url('admin/user/permissions'),
- '!snippet' => '
-$drupal_path = "../../../../../../../../..";
-if(!file_exists($drupal_path . "/includes/bootstrap.inc")) {
- $drupal_path = "../..";
- do {
- $drupal_path .= "/..";
- $depth = substr_count($drupal_path, "..");
- false;
- }
- while(!($bootstrapFileFound = file_exists($drupal_path . "/includes/bootstrap.inc")) && $depth<10);
-}
-if (!isset($bootstrapFileFound) || $bootstrapFileFound) {
- $cwd = getcwd();
- chdir($drupal_path);
- require_once "./includes/bootstrap.inc";
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
- $Config["Enabled"] = user_access("allow fckeditor file uploads");
- chdir($cwd);
-}',
- '!access1' => t('allow fckeditor file uploads'), )
- );
+ );
+ $output .= t("<li>As of Drupal 5.2, additional step is required: locate file named <code>settings.php</code> inside your drupal directory (usually <code>sites/default/settings.php</code>) and set <strong><code>&#36;cookie_domain</code></strong> variable to the appropiate domain (remember to uncomment that line). If you not do this, FCKeditor will claim that file browser is disabled</li>");
+ $output .= t('<li>Enabling file uploads is <strong>a security risk</strong>. That\'s why you have to grant a !link to enable the file browser to certain groups.</li>', array('!link' => l(t('separate permission'), 'admin/user/permissions')));
+ $output .= t('<li>Lastly, adjust the !fb for each !profile.</li></ol>', array('!fb' => t('File browser settings'), '!profile' => l(t('profile'), 'admin/settings/fckeditor')));
+ $output .= t("<h3>Modules: Image Assist</h3><p>Image Assist can be integrated with FCKeditor. To do this, simply copy the <code>!iaf1</code> file to <code>!iaf2</code>.</p>", array("!iaf1" => drupal_get_path('module', 'fckeditor') ."/img_assist_fckeditor.js", "!iaf2" => drupal_get_path('module', 'img_assist') ."/img_assist_fckeditor.js"));
break;
}
@@ -193,7 +177,7 @@ function fckeditor_process_input($element) {
*
*/
function fckeditor_menu() {
-
+
$items = array();
$items['admin/settings/fckeditor'] = array(
@@ -219,12 +203,96 @@ function fckeditor_profile_delete($name) {
*/
function fckeditor_profile_validate($edit) {
$errors = array();
+
+ if (!preg_match("/^\d+$/", trim($edit['min_rows']))) {
+ $errors['min_rows'] = t('Minimum rows must be a valid number');
+ }
+
+ if ($edit['default'] == 't' && $edit['popup'] == 't') {
+ $errors['popup'] = t('If FCKeditor is enabled by default, popup window must be disabled.');
+ }
+
+ if ($edit['show_toggle'] == 't' && $edit['popup'] == 't') {
+ $errors['popup'] = t('If toggle is enabled, popup window must be disabled.');
+ }
+
if (!$edit['name']) {
$errors['name'] = t('You must give a profile name.');
}
- if (!$edit['rids']) {
- $errors['rids'] = t('You must select at least one role.');
+ if (!preg_match("/^\d+%?$/", $edit['width'])) {
+ $errors['width'] = t('Enter valid width. Ex: 400 or 100%');
+ }
+
+ if (!empty($edit['css_path'])) {
+ if ($edit['css_mode'] != 'self') {
+ $errors['css_path'] = t('CSS path is not empty. Please set the "Editor CSS" option to "define css" mode.');
+ }
+ else if (false !== strpos($edit['css_path'], '"')) {
+ $errors['css_path'] = t('Double quotes are not allowed in CSS path.');
+ }
+ else if (substr($edit['css_path'], 0, 1) == "'" && substr($edit['css_path'], -1) == "'") {
+ $errors['css_path'] = t('Enter valid path, do not surround it with quotes.');
+ }
+ }
+
+ if (!empty($edit['styles_path'])) {
+ if ($edit['css_style'] != 'self') {
+ $errors['styles_path'] = t('Path to predefined styles is not empty. Please set the "Predefined styles" option to "define path to fckstyles.xml" mode.');
+ }
+ else if (false !== strpos($edit['styles_path'], '"')) {
+ $errors['styles_path'] = t('Double quotes are not allowed in path.');
+ }
+ else if (substr($edit['styles_path'], 0, 1) == "'" && substr($edit['styles_path'], -1) == "'") {
+ $errors['styles_path'] = t('Enter valid path, do not surround it with quotes.');
+ }
+ }
+
+ if (!empty($edit['font_format'])) {
+ if (!preg_match("/^((p|div|pre|address|h1|h2|h3|h4|h5|h6);)*(p|div|pre|address|h1|h2|h3|h4|h5|h6)$/", $edit['font_format'])) {
+ $errors['font_format'] = t('Enter valid, semicolon separated, list of HTML font formats (no semicolon at the end of list expected).');
+ }
+ }
+
+ //validate fields
+ $fields = preg_split("/[\s,]+/", strip_tags($edit['excl_fields']));
+ foreach ($fields as $field) {
+ if ($field && !preg_match("/^[a-z]+(\-[a-z]+)+$/i", $field)) {
+ $errors['excl_fields'] = t("Invalid field specified: %1", array("%1" => $field));
+ break;
+ }
+ }
+
+ $fields = preg_split("/[\s,]+/", strip_tags($edit['simple_incl_fields']));
+ foreach ($fields as $field) {
+ if ($field && !preg_match("/^[a-z]+(\-[a-z]+)+$/i", $field)) {
+ $errors['excl_fields'] = t("Invalid field specified: %1", array("%1" => $field));
+ break;
+ }
+ }
+
+ //validate paths
+ $paths = preg_split("/[\s,]+/", strip_tags($edit['excl_paths']));
+ foreach ($paths as $path) {
+ if ($path && !preg_match("|^[a-z0-9-\*/]*$|i", $path)) {
+ $errors['excl_paths'] = t("Invalid path specified: %1", array("%1" => $path));
+ break;
+ }
+ }
+
+ $paths = preg_split("/[\s,]+/", strip_tags($edit['simple_incl_paths']));
+ foreach ($paths as $path) {
+ if ($path && !preg_match("|^[a-z0-9-\*/]*$|i", $path)) {
+ $errors['excl_paths'] = t("Invalid path specified: %1", array("%1" => $path));
+ break;
+ }
+ }
+
+ if ($edit['UserFilesAbsolutePath'] && !$edit['UserFilesPath']) {
+ $errors['UserFilesPath'] = t("Path to uploaded files is required.");
+ }
+ if ($edit['UserFilesPath'] && !$edit['UserFilesAbsolutePath']) {
+ $errors['UserFilesPath'] = t("Absolute path to uploaded files is required.");
}
foreach ($errors as $name => $message) {
@@ -234,25 +302,71 @@ function fckeditor_profile_validate($edit) {
return count($errors) == 0;
}
+/**
+ * Global profile validation.
+ */
+function fckeditor_global_profile_validate($edit) {
+ $errors = array();
+
+ //validate fields
+ $fields = preg_split("/[\s,]+/", strip_tags($edit['excl_fields']));
+ foreach ($fields as $field) {
+ if ($field && !preg_match("/^[a-z]+(\-[a-z]+)+$/i", $field)) {
+ $errors['excl_fields'] = t("Invalid field specified: %1", array("%1" => $field));
+ break;
+ }
+ }
+
+ $fields = preg_split("/[\s,]+/", strip_tags($edit['simple_incl_fields']));
+ foreach ($fields as $field) {
+ if ($field && !preg_match("/^[a-z]+(\-[a-z]+)+$/i", $field)) {
+ $errors['excl_fields'] = t("Invalid field specified: %1", array("%1" => $field));
+ break;
+ }
+ }
+
+ //validate paths
+ $paths = preg_split("/[\s,]+/", strip_tags($edit['excl_paths']));
+ foreach ($paths as $path) {
+ if ($path && !preg_match("|^[a-z0-9-\*/]*$|i", $path)) {
+ $errors['excl_paths'] = t("Invalid path specified: %1", array("%1" => $path));
+ break;
+ }
+ }
+
+ $paths = preg_split("/[\s,]+/", strip_tags($edit['simple_incl_paths']));
+ foreach ($paths as $path) {
+ if ($path && !preg_match("|^[a-z0-9-\*/]*$|i", $path)) {
+ $errors['excl_paths'] = t("Invalid path specified: %1", array("%1" => $path));
+ break;
+ }
+ }
+
+ foreach ($errors as $name => $message) {
+ form_set_error($name, $message);
+ }
+
+ return count($errors) == 0;
+}
/**
* Controller for FCKeditor administrative settings.
*/
function fckeditor_admin($arg = NULL) {
- $module_drupal_path = drupal_get_path('module', 'fckeditor');
- $fckconfig_file = $module_drupal_path . '/fckeditor/fckconfig.js';
+ $module_drupal_path = drupal_get_path('module', 'fckeditor');
+ $fckconfig_file = $module_drupal_path .'/fckeditor/fckconfig.js';
if (!file_exists($fckconfig_file)) {
drupal_set_message(t('checking for %filename', array('%filename' => $fckconfig_file)));
drupal_set_message(
- t('The FCKeditor component is not installed correctly. Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %modulepath and make sure that the directory %modulesubdir and the file %modulefile exist. Refer to the !readme for more information.',
- array(
- '!fckeditorlink'=>l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
- '!readme' => l('readme.txt', 'admin/help/fckeditor'),
- '%modulepath' => base_path() . $module_drupal_path .'/fckeditor/',
- '%modulesubdir' => base_path() . $module_drupal_path .'/fckeditor/editor',
- '%modulefile' => base_path() . $module_drupal_path .'/fckeditor/fckeditor.js')),
- 'error');
+ t('The FCKeditor component is not installed correctly. Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %modulepath and make sure that the directory %modulesubdir and the file %modulefile exist. Refer to the !readme for more information.',
+ array(
+ '!fckeditorlink' => l(t('FCKeditor homepage'), 'http://www.fckeditor.net/download'),
+ '!readme' => l('readme.txt', 'admin/help/fckeditor'),
+ '%modulepath' => base_path() . $module_drupal_path .'/fckeditor/',
+ '%modulesubdir' => base_path() . $module_drupal_path .'/fckeditor/editor',
+ '%modulefile' => base_path() . $module_drupal_path .'/fckeditor/fckeditor.js')),
+ 'error');
return false;
}
@@ -263,21 +377,35 @@ function fckeditor_admin($arg = NULL) {
switch ($op) {
case 'add':
- drupal_set_breadcrumb(array(l(t('administer'), 'admin'), l(t('fckeditor'), 'admin/settings/fckeditor'), l(t('Add new FCKeditor profile'), 'admin/settings/fckeditor/add')));
$output = fckeditor_profile_form($edit);
break;
+ case 'addg':
+ $output = fckeditor_global_profile_form($edit);
+ break;
+
case 'edit':
drupal_set_title(t('Edit FCKeditor profile'));
$output = fckeditor_profile_form(fckeditor_profile_load(urldecode(arg(4))));
break;
+ case 'editg':
+ drupal_set_title(t('Edit FCKeditor profile'));
+ $output = fckeditor_global_profile_form(fckeditor_profile_load("FCKeditor Global Profile"));
+ break;
+
case 'delete':
fckeditor_profile_delete(urldecode(arg(4)));
drupal_set_message(t('Deleted profile'));
drupal_goto('admin/settings/fckeditor');
break;
+ case 'deleteg':
+ fckeditor_global_profile_delete(urldecode(arg(4)));
+ drupal_set_message(t('Deleted Global profile'));
+ drupal_goto('admin/settings/fckeditor');
+ break;
+
case t('Create profile');
case t('Update profile');
if (fckeditor_profile_validate($edit)) {
@@ -290,12 +418,25 @@ function fckeditor_admin($arg = NULL) {
}
break;
+ case t('Create global profile');
+ case t('Update global profile');
+ if (fckeditor_global_profile_validate($edit)) {
+ $edit['name'] = 'FCKeditor Global Profile';
+ fckeditor_global_profile_save($edit);
+ drupal_set_message(t('FCKeditor global profile has been saved.'));
+ drupal_goto('admin/settings/fckeditor');
+ }
+ else {
+ $output = fckeditor_global_profile_form($edit);
+ }
+ break;
+
default:
drupal_set_title(t('FCKeditor settings'));
//Check if FCKeditor is installed.
$fckeditor_loc = drupal_get_path('module', 'fckeditor') .'/fckeditor/';
if (!is_dir($fckeditor_loc)) {
- drupal_set_message(t('Could not find the FCKeditor engine installed at <strong>!fckeditor-directory</strong>. Please <a href="http://www.fckeditor.net/download">download FCKeditor</a>, uncompress it and copy the folder into !fckeditor-path.', array('!fckeditor-path' => drupal_get_path('module', 'fckeditor'), '!fckeditor-directory' => $fckeditor_loc)), 'error');
+ drupal_set_message(t('Could not find the FCKeditor engine installed at <strong>!fckeditor-directory</strong>. Please !download, uncompress it and copy the folder into !fckeditor-path.', array('!fckeditor-path' => drupal_get_path('module', 'fckeditor'), '!fckeditor-directory' => $fckeditor_loc, '!download' => l(t("download FCKeditor"), "http://www.fckeditor.net/download"))), 'error');
}
$output = fckeditor_profile_overview();
}
@@ -311,6 +452,7 @@ function fckeditor_profile_save($edit) {
db_query("DELETE FROM {fckeditor_settings} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
db_query("DELETE FROM {fckeditor_role} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", $edit['name'], serialize($edit));
+ if ($edit['rids'])
foreach ($edit['rids'] as $rid => $value) {
db_query("INSERT INTO {fckeditor_role} (name, rid) VALUES ('%s', %d)", $edit['name'], $rid);
}
@@ -322,6 +464,16 @@ function fckeditor_profile_save($edit) {
}
}
+function fckeditor_global_profile_save($edit) {
+ if (isset($edit['rank'])) {
+ $edit['rank'] = explode('>', str_replace(' ', '', $edit['rank']));
+ }
+
+ db_query("DELETE FROM {fckeditor_settings} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
+ db_query("DELETE FROM {fckeditor_role} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
+ db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", $edit['name'], serialize($edit));
+}
+
/**
* Controller for fckeditor profiles.
*/
@@ -333,13 +485,26 @@ function fckeditor_profile_overview() {
$roles = user_roles();
$header = array(t('Profile'), t('Roles'), t('Operations'));
foreach ($profiles as $p) {
- $rows[] = array(array('data' => $p->name, 'valign' => 'top'), array('data' => implode("<br />\n", $p->rids)), array('data' => l(t('edit'), 'admin/settings/fckeditor/edit/'. urlencode($p->name)) . ' '. l(t('delete'), 'admin/settings/fckeditor/delete/'. urlencode($p->name)), 'valign' => 'top'));
+ if ($p->name !== "FCKeditor Global Profile") {
+ $rows[] = array(array('data' => $p->name, 'valign' => 'top'), array('data' => implode("<br />\n", $p->rids)), array('data' => l(t('edit'), 'admin/settings/fckeditor/edit/'. urlencode($p->name)) .' '. l(t('delete'), 'admin/settings/fckeditor/delete/'. urlencode($p->name)), 'valign' => 'top'));
+ }
}
+ $output .= "<h3>". t("Profiles") ."</h3>";
$output .= theme('table', $header, $rows);
- $output .= t('<p><a href="!create-profile-url">Create new profile</a></p>', array('!create-profile-url' => url('admin/settings/fckeditor/add')));
+ $output .= '<p>'. l(t('Create new profile'), 'admin/settings/fckeditor/add') .'</p>';
+ }
+ else {
+ drupal_set_message(t('No profiles found. Click here to !create.', array('!create' => l(t("create a new profile"), 'admin/settings/fckeditor/add'))));
+ }
+
+ $rows = array();
+ if (!isset($profiles['FCKeditor Global Profile'])) {
+ drupal_set_message(t('Global Profile not found. Click here to !create.', array('!create' => l(t("create the global profile"), 'admin/settings/fckeditor/addg'))));
}
else {
- drupal_set_message(t('No profiles found. Click here to <a href="!create-profile-url">create a new profile</a>.', array('!create-profile-url' => url('admin/settings/fckeditor/add'))));
+ $output .= "<h3>". t("Global Settings") ."</h3>";
+ $rows[] = array(array('data' => t('FCKeditor Global Profile'), 'valign' => 'top'), array('data' => l(t('edit'), 'admin/settings/fckeditor/editg') ." ". l(t('delete'), 'admin/settings/fckeditor/deleteg'), 'valign' => 'top'));
+ $output .= theme('table', array(t('Profile'), t('Operations')), $rows);
}
return $output;
@@ -370,42 +535,28 @@ function fckeditor_profile_load($name = '') {
return ($name ? $profiles[$name] : $profiles);
}
-function fckeditor_is_enabled($excl_mode, $excl_list, $element_id, $get_q) {
- $exclude = preg_split("/[\s,]+/", strip_tags($excl_list));
- $toggle = $excl_mode;
+/**
+ * @param int $excl_mode 1/include, exclude otherwise
+ * @param string $excl_fields fields (HTML IDs)
+ * @param string $excl_paths paths (drupal paths)
+ * @param string $element_id current ID
+ * @param string $get_q current path
+ *
+ * @return boolean
+ * returns true if FCKeditor is enabled
+ */
+function fckeditor_is_enabled($excl_mode, $excl_fields, $excl_paths, $element_id, $get_q) {
+ $arr_excl_fields = preg_split("/[\s,]+/", strip_tags($excl_fields));
+ $field_found = fckeditor_idsearch($element_id, $arr_excl_fields);
- switch ($toggle) {
- case (1):
- // normal inclusion based on the id
- $enabled = fckeditor_idsearch($element_id, $exclude);
- break;
- case (2):
- // Path exclusion
- $enabled = true; // defaults to enabled
- // This bizarre bit of magic courtesy of block.module
- $path = drupal_get_path_alias($get_q);
- $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($excl_list, '/')) .')$/';
- if(preg_match($regexp, $path)) {
- $enabled = false; // but if in excluded paths disable it again
- }
- break;
- case (3):
- // Path inclusion
- // This bizarre bit of magic courtesy of block.module
- $path = drupal_get_path_alias($get_q);
- $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($excl_list, '/')) .')$/';
- if(preg_match($regexp, $path)) {
- $enabled = true;
- }
- break;
- case (0):
- default:
- // normal exclusion based on the id
- $enabled = !fckeditor_idsearch($element_id, $exclude);
- break;
- }
+ $path = drupal_get_path_alias($get_q);
+ $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($excl_paths, '/')) .')$/';
+ $path_found = preg_match($regexp, $path);
- return $enabled;
+ $found = $field_found || $path_found;
+
+ $result = ($excl_mode == 1) ? $found : !$found;
+ return $result;
}
/**
@@ -423,31 +574,47 @@ function fckeditor_process_textarea($element) {
static $profile_name;
//skip this one, surely nobody wants WYSIWYG here
+
switch ($element['#id']) {
case 'edit-excl-list':
case 'edit-simple-incl-list':
+ case 'edit-simple-incl-paths':
+ case 'edit-simple-incl-fields':
case 'edit-log':
+ case 'edit-excl-fields':
+ case 'edit-excl-paths':
+ case 'edit-js-conf':
return $element;
break;
}
+
if (isset($element['#attributes']['disabled']) && $element['#attributes']['disabled'] == 'disabled') {
- return $element;
- }
+ return $element;
+ }
+
// Since fckeditor_profile_load() makes a db hit, only call it when we're pretty sure
// we're gonna render fckeditor.
if (!$profile_name) {
- $profile_name = db_result(db_query('SELECT s.name FROM {fckeditor_settings} s INNER JOIN {fckeditor_role} r ON r.name = s.name WHERE r.rid IN (%s)', implode(',', array_keys($user->roles))));
+ $sorted_roles = fckeditor_sorted_roles();
+ foreach ($sorted_roles as $rid => $name) {
+ if (isset($user->roles[$rid])) {
+ break;
+ }
+ }
+
+ $profile_name = db_result(db_query("SELECT s.name FROM {fckeditor_settings} s INNER JOIN {fckeditor_role} r ON r.name = s.name WHERE r.rid='%s'", $rid));
if (!$profile_name) {
return $element;
}
}
$profile = fckeditor_profile_load($profile_name);
+
$conf = array();
$conf = $profile->settings;
- if ($conf['allow_user_conf']) {
- foreach (array('default','show_toggle','popup','skin','toolbar','expand','width','lang','auto_lang') as $setting) {
+ if ($conf['allow_user_conf']=='t') {
+ foreach (array('default', 'show_toggle', 'popup', 'skin', 'toolbar', 'expand', 'width', 'lang', 'auto_lang') as $setting) {
$conf[$setting] = fckeditor_user_get_setting($user, $profile, $setting);
}
}
@@ -455,28 +622,37 @@ function fckeditor_process_textarea($element) {
$conf["show_toggle"]="f";
}
- $themepath = path_to_theme() . '/';
+ $themepath = path_to_theme() .'/';
$host = base_path();
// Set resizable to false to avoid drupal.js resizable function from taking control of the textarea
- $element['#resizable'] = FALSE;
+ if ($conf["popup"]=="f") {
+ $element['#resizable'] = FALSE;
+ }
- $enabled = fckeditor_is_enabled($conf['excl_mode'], $conf['excl_list'], $element['#id'], $_GET['q']);
+ $enabled = fckeditor_is_enabled($conf['excl_mode'], $conf['excl_fields'], $conf['excl_paths'], $element['#id'], $_GET['q']);
+ if ($enabled) {
+ $global_profile = fckeditor_profile_load("FCKeditor Global Profile");
+ $global_conf = $global_profile->settings;
+ if ($global_conf) {
+ $enabled = fckeditor_is_enabled($global_conf['excl_mode'], $global_conf['excl_fields'], $global_conf['excl_paths'], $element['#id'], $_GET['q']);
+ }
+ }
if (($element['#rows'] > $conf['min_rows']) && $enabled) {
-
// only replace textarea when it has enough rows and it is enabled
- $js_id = 'oFCK_' . $num++;
- $fckeditorOn = ($conf['default']=='t') ? 1 : 0 ;
- $wysiwyg_link = "<div id=\"fck_{$js_id}\"><textarea id=\"{$js_id}\">". htmlspecialchars($element['#value']). "</textarea></div>\n";
- $wysiwyg_link .= "<a href=\"javascript:Toggle('{$js_id}','{$element['#id']}','".t("Switch to plain text editor")."','".t("Switch to rich text editor")."');\" id=\"switch_{$js_id}\" ".($fckeditorOn?"style=\"display:none\"":"").">";
- $wysiwyg_link .= $fckeditorOn ? t("Switch to plain text editor") : t("Switch to rich text editor");
+ $js_id = 'oFCK_'. $num++;
+ $fckeditor_on = ($conf['default']=='t') ? 1 : 0 ;
+
+ $wysiwyg_link = "<div id=\"fck_{$js_id}\"><textarea id=\"{$js_id}\">". htmlspecialchars($element['#value']) ."</textarea></div>\n";
+ $wysiwyg_link .= "<a href=\"javascript:Toggle('{$js_id}','{$element['#id']}','". str_replace("'", "\\'", t("Switch to plain text editor")) ."','". str_replace("'", "\\'", t("Switch to rich text editor")) ."');\" id=\"switch_{$js_id}\" ". ($fckeditor_on?"style=\"display:none\"":"") .">";
+ $wysiwyg_link .= $fckeditor_on ? t("Switch to plain text editor") : t("Switch to rich text editor");
$wysiwyg_link .= "</a>";
$wysiwyg_link .= "\n<script type=\"text/javascript\">";
- $wysiwyg_link .= "window.setTimeout(\"CreateToggle('{$element['#id']}','{$js_id}', $fckeditorOn);\",100);\n</script>";
+ $wysiwyg_link .= "window.setTimeout(\"CreateToggle('{$element['#id']}','{$js_id}', $fckeditor_on);\",100);\n</script>";
if (!isset($element['#suffix'])) {
- $element['#suffix'] = "";
+ $element['#suffix'] = "";
}
//settings are saved as strings, not booleans
if ($profile->settings['show_toggle'] == 't') {
@@ -484,8 +660,8 @@ function fckeditor_process_textarea($element) {
$element['#suffix'] .= $wysiwyg_link;
}
// setting some variables
- $module_drupal_path = drupal_get_path('module', 'fckeditor');
- $module_full_path = base_path() . $module_drupal_path;
+ $module_drupal_path = drupal_get_path('module', 'fckeditor');
+ $module_full_path = base_path() . $module_drupal_path;
// get the default drupal files path
$files_path = base_path() . file_directory_path();
// module_drupal_path:
@@ -500,46 +676,46 @@ function fckeditor_process_textarea($element) {
// sensible default for small toolbars
$height = $element['#rows'] * 14 + 140;
- // nessecary because FCKeditor interferes with resize script
- $element['#resizable'] = FALSE;
-
if (!$is_running) {
- drupal_add_js($module_drupal_path . '/fckeditor/fckeditor.js');
- drupal_add_js($module_drupal_path . '/fckeditor.utils.js');
+ drupal_add_js($module_drupal_path .'/fckeditor/fckeditor.js');
+ drupal_add_js($module_drupal_path .'/fckeditor.utils.js');
$is_running = true;
}
$toolbar = $conf['toolbar'];
//$height += 100; // for larger toolbars
- $forceSimpleToolbar = fckeditor_is_enabled($conf['simple_incl_mode'], $conf['simple_incl_list'], $element['#id'], $_GET['q']);
- if ($forceSimpleToolbar) {
+ $force_simple_toolbar = fckeditor_is_enabled(1, $conf['simple_incl_fields'], $conf['simple_incl_paths'], $element['#id'], $_GET['q']);
+ if (!$force_simple_toolbar) {
+ $force_simple_toolbar = fckeditor_is_enabled(1, $global_conf['simple_incl_fields'], $global_conf['simple_incl_paths'], $element['#id'], $_GET['q']);
+ }
+ if ($force_simple_toolbar) {
$toolbar = FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME;
}
- $textareaID = $profile->settings['show_toggle'] == 't' ? $js_id : $element['#id'];
+ $textarea_id = $profile->settings['show_toggle'] == 't' ? $js_id : $element['#id'];
$element['#suffix'] .= "\n<script type=\"text/javascript\">
-var ".$js_id." = new FCKeditor( '".$textareaID."' );
-".$js_id.".BasePath = '".$module_full_path."/fckeditor/';
-".$js_id.".Config['CustomConfigurationsPath'] = '".$module_full_path."/fckeditor.config.js';
-".$js_id.".Config['TextareaID'] = '".$element['#id']."';";
+var ". $js_id ." = new FCKeditor( '". $textarea_id ."' );
+". $js_id .".BasePath = '". $module_full_path ."/fckeditor/';
+". $js_id .".Config['CustomConfigurationsPath'] = \"". $module_full_path ."/fckeditor.config.js\";
+". $js_id .".Config['TextareaID'] = \"". $element['#id'] ."\";";
//if ($conf['appearance_conf'] == 'f') {
- $element['#suffix'] .= "\n".$js_id.".ToolbarSet = '".$toolbar."';
-".$js_id.".Config['SkinPath'] = ".$js_id.".BasePath + 'editor/skins/".$conf['skin']."/';
-".$js_id.".Config['DefaultLanguage'] = '".$conf['lang']."';
-".$js_id.".Config['AutoDetectLanguage'] = '".($conf['auto_lang']=="t"?"true":"false")."';
-".$js_id.".Height = '".$height."';
-".$js_id.".Config['ToolbarStartExpanded'] = '".($conf['expand']=="t"?"true":"false")."';
-".$js_id.".Width = '".$width."';\n";
+ $element['#suffix'] .= "\n". $js_id .".ToolbarSet = \"". $toolbar ."\";
+". $js_id .".Config['SkinPath'] = ". $js_id .".BasePath + \"editor/skins/". $conf['skin'] ."/\";
+". $js_id .".Config['DefaultLanguage'] = \"". $conf['lang'] ."\";
+". $js_id .".Config['AutoDetectLanguage'] = ". ($conf['auto_lang']=="t"?"true":"false") .";
+". $js_id .".Height = \"". $height ."\";
+". $js_id .".Config['ToolbarStartExpanded'] = ". ($conf['expand']=="t"?"true":"false") .";
+". $js_id .".Width = \"". $width ."\";\n";
//}
//if ($conf['output_conf'] == 'f') {
- $element['#suffix'] .= "\n".$js_id.".Config['EnterMode'] = '".$conf['enter_mode']."';
-".$js_id.".Config['ShiftEnterMode'] = '".$conf['shift_enter_mode']."';
-".$js_id.".Config['FontFormats'] = '".str_replace(",",";",$conf['font_format'])."';
-".$js_id.".Config['FormatSource'] = '".($conf['format_source']=="t"?"true":"false")."';
-".$js_id.".Config['FormatOutput'] = '".($conf['format_output']=="t"?"true":"false")."';\n";
+ $element['#suffix'] .= "\n". $js_id .".Config['EnterMode'] = '". $conf['enter_mode'] ."';
+". $js_id .".Config['ShiftEnterMode'] = \"". $conf['shift_enter_mode'] ."\";
+". $js_id .".Config['FontFormats'] = \"". str_replace(",", ";", $conf['font_format']) ."\";
+". $js_id .".Config['FormatSource'] = ". ($conf['format_source']=="t"?"true":"false") .";
+". $js_id .".Config['FormatOutput'] = ". ($conf['format_output']=="t"?"true":"false") .";\n";
//}
// integrate IMCE if it exists and is prefered
@@ -554,78 +730,100 @@ var ".$js_id." = new FCKeditor( '".$textareaID."' );
}
// add code for filebrowser for users that have access
if (user_access('allow fckeditor file uploads')==1) {
- $connector_path = $module_drupal_path . "/fckeditor/editor/filemanager/connectors/php/connector.php" ;
+ $connector_path = $module_drupal_path ."/fckeditor/editor/filemanager/connectors/php/connector.php" ;
$connector_path = file_exists($connector_path) ? "../../connectors/php/connector.php" : "connectors/php/connector.php" ;
- $upload_path = $module_drupal_path . "/fckeditor/editor/filemanager/connectors/php/upload.php" ;
+ $upload_path = $module_drupal_path ."/fckeditor/editor/filemanager/connectors/php/upload.php" ;
$upload_path = file_exists($upload_path) ? "/fckeditor/editor/filemanager/connectors/php/upload.php" : "/fckeditor/editor/filemanager/upload/php/upload.php" ;
if ($advanced_uploads) {
- $element['#suffix'] .= $js_id.".Config['LinkBrowserURL'] = '".$module_full_path."/fckeditor/editor/filemanager/browser/default/browser.html?Connector=".$connector_path."&ServerPath=".$files_path."';
- ".$js_id.".Config['ImageBrowserURL'] = '".$module_full_path."/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=".$connector_path."&ServerPath=".$files_path."';
- ".$js_id.".Config['FlashBrowserURL'] = '".$module_full_path."/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=".$connector_path."&ServerPath=".$files_path."';\n";
+ $element['#suffix'] .= $js_id .".Config['LinkBrowserURL'] = \"". $module_full_path ."/fckeditor/editor/filemanager/browser/default/browser.html?Connector=". $connector_path ."&ServerPath=". $files_path ."\";
+ ". $js_id .".Config['ImageBrowserURL'] = \"". $module_full_path ."/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=". $connector_path ."&ServerPath=". $files_path ."\";
+ ". $js_id .".Config['FlashBrowserURL'] = \"". $module_full_path ."/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=". $connector_path ."&ServerPath=". $files_path ."\";\n";
}
else {
- $element['#suffix'] .= $js_id.".Config['LinkBrowser'] = false;
-".$js_id.".Config['ImageBrowser'] = false;
-".$js_id.".Config['FlashBrowser'] = false;\n";
+ $element['#suffix'] .= $js_id .".Config['LinkBrowser'] = false;
+". $js_id .".Config['ImageBrowser'] = false;
+". $js_id .".Config['FlashBrowser'] = false;\n";
}
if ($basic_uploads) {
- $element['#suffix'] .= $js_id.".Config['LinkUploadURL'] = '".$module_full_path . $upload_path."';
- ".$js_id.".Config['ImageUploadURL'] = '".$module_full_path . $upload_path."?Type=Image';
- ".$js_id.".Config['FlashUploadURL'] = '".$module_full_path . $upload_path."?Type=Flash';\n";
+ $element['#suffix'] .= $js_id .".Config['LinkUploadURL'] = \"". $module_full_path . $upload_path ."\";
+ ". $js_id .".Config['ImageUploadURL'] = \"". $module_full_path . $upload_path ."?Type=Image\";
+ ". $js_id .".Config['FlashUploadURL'] = \"". $module_full_path . $upload_path ."?Type=Flash\";\n";
}
else {
- $element['#suffix'] .= $js_id.".Config['LinkUpload'] = false;
-".$js_id.".Config['ImageUpload'] = false;
-".$js_id.".Config['FlashUpload'] = false;\n";
+ $element['#suffix'] .= $js_id .".Config['LinkUpload'] = false;
+". $js_id .".Config['ImageUpload'] = false;
+". $js_id .".Config['FlashUpload'] = false;\n";
}
+ $_SESSION['FCKeditor']['UserFilesPath'] = strtr($profile->settings['UserFilesPath'], array("%f" => file_directory_path(), "%u" => $user->uid, "%b" => base_path()));
+ $_SESSION['FCKeditor']['UserFilesAbsolutePath'] = strtr($profile->settings['UserFilesAbsolutePath'], array("%f" => file_directory_path(), "%u" => $user->uid, "%b" => base_path(), "%d" => $_SERVER['DOCUMENT_ROOT']));
}
else {
- $_SESSION['FCKeditor']['upload_allowed'] = false;
- $element['#suffix'] .= $js_id.".Config['LinkBrowser'] = false;
-".$js_id.".Config['ImageBrowser'] = false;
-".$js_id.".Config['FlashBrowser'] = false;
-".$js_id.".Config['LinkUpload'] = false;
-".$js_id.".Config['ImageUpload'] = false;
-".$js_id.".Config['FlashUpload'] = false;\n";
+ $element['#suffix'] .= $js_id .".Config['LinkBrowser'] = false;
+". $js_id .".Config['ImageBrowser'] = false;
+". $js_id .".Config['FlashBrowser'] = false;
+". $js_id .".Config['LinkUpload'] = false;
+". $js_id .".Config['ImageUpload'] = false;
+". $js_id .".Config['FlashUpload'] = false;\n";
+ }
+
+ if ($conf['js_conf']) {
+ $lines = preg_split("/[\n\r]+/", $conf['js_conf']);
+ foreach ($lines as $l)
+ if ($l && strlen($l) > 5) {
+ $eqpos = strpos($l, "=");
+ if (false !== $eqpos) {
+ $option = str_replace("FCKConfig.", "", substr($l, 0, $eqpos));
+ $element['#suffix'] .= "\n". $js_id .".Config['". $option ."'] =". substr($l, $eqpos + 1);
+ }
+ }
}
// add custom xml stylesheet if it exists
- if (file_exists($themepath.'/fckstyles.xml')) {
- $styles_xml_path = $host.$themepath.'/fckstyles.xml';
- $element['#suffix'] .= $js_id.".Config['StylesXmlPath'] = '".$styles_xml_path."';\n";
+ if ($conf['css_style'] == 'theme') {
+ if (file_exists($themepath .'/fckstyles.xml')) {
+ $styles_xml_path = $host . $themepath .'/fckstyles.xml';
+ $element['#suffix'] .= $js_id .".Config['StylesXmlPath'] = \"". $styles_xml_path ."\";\n";
+ }
+ }
+ else if ($conf['css_style'] == 'self') {
+ $element['#suffix'] .= $js_id .".Config['StylesXmlPath'] = \"". str_replace(array('%h', '%t', '%m'), array($host, $themepath, $module_drupal_path), $conf['styles_path']) ."\";\n";
}
// add custom stylesheet if configured
// lets hope it exists but we'll leave that to the site admin
if ($conf['css_mode'] == 'theme') {
- $css = $themepath . 'style.css';
+ $css = $themepath .'style.css';
if (file_exists($css)) {
- $element['#suffix'] .= $js_id.".Config['EditorAreaCSS'] = '".$host . $css.",".$module_full_path."/fckeditor.css';";
+ $element['#suffix'] .= $js_id .".Config['EditorAreaCSS'] = \"". $host . $css .",". $module_full_path ."/fckeditor.css\";";
}
}
else if ($conf['css_mode'] == 'self') {
- $element['#suffix'] .= $js_id.".Config['EditorAreaCSS'] = '".str_replace(array('%h', '%t'), array($host, $themepath), $conf['css_path']).",".$module_full_path."/fckeditor.css';";
+ $element['#suffix'] .= $js_id .".Config['EditorAreaCSS'] = \"". str_replace(array('%h', '%t'), array($host, $themepath), $conf['css_path']) .",". $module_full_path ."/fckeditor.css\";";
}
$element['#suffix'] .= "</script>\n";
if ($conf['popup']=="t") {
// Add the script file with the popup open function.
- drupal_add_js($module_drupal_path . '/fckeditor.popup.js');
- $element['#suffix'] .= " <span class=\"fckeditor_popuplink\">(<a href=\"#\" onclick=\"FCKeditor_OpenPopup('".$module_full_path."/fckeditor.popup.html?var=".$js_id."&el=".$element['#id']."');return false;\">" . t('Open rich editor') . "</a>)</span>";
+ drupal_add_js($module_drupal_path .'/fckeditor.popup.js');
+ $element['#suffix'] .= " <span class=\"fckeditor_popuplink\">(<a href=\"#\" onclick=\"FCKeditor_OpenPopup('". $module_full_path ."/fckeditor.popup.html?var=". $js_id ."&el=". $element['#id'] ."');return false;\">". t('Open rich editor') ."</a>)</span>";
}
else {
// if no popup mode, add the editor initialization to the footer
// this obviously needs print($closure) in page.tpl.php
- if ($fckeditorOn) {
- drupal_add_js('if (Drupal.jsEnabled) {$(document).ready(function() {'.$js_id.'.ReplaceTextarea();});}', 'inline', 'footer');
+ if ($fckeditor_on) {
+ drupal_add_js('if (Drupal.jsEnabled) {$(document).ready(function() {if (typeof ('. $js_id .') != "undefined") '. $js_id .'.ReplaceTextarea();});}', 'inline', 'footer');
}
}
}
// display the field id for administrators
if (user_access('administer fckeditor')) {
- $element['#suffix'] .= '<div class="textarea-identifier description">The ID for for <a href="'. url('admin/settings/fckeditor') .'">excluding or including</a> this element is: '.$element['#id'].' - the path is: '.$_GET['q'].'</div>';
+ $element['#suffix'] .= t('<div class="textarea-identifier description">The ID for !excluding this element is: !id - the path is: !path</div>', array(
+ '!excluding' => l(t("excluding or including"), 'admin/settings/fckeditor'),
+ '!id' => $element['#id'],
+ '!path' => $_GET['q'],
+ ));
}
return $element;
@@ -655,7 +853,7 @@ function fckeditor_user($type, &$edit, &$user, $category = NULL) {
'#type' => 'select',
'#title' => t('Default state'),
'#default_value' => isset($user->fckeditor_default) ? $user->fckeditor_default : (isset($profile->settings['default']) ? $profile->settings['default'] : 'f'),
- '#options' => array('t' => t('enabled'),'f' => t('disabled')),
+ '#options' => array('t' => t('enabled'), 'f' => t('disabled')),
'#description' => t('Should rich-text editing be enabled or disabled by default in textarea fields? If disabled, rich text editor may still be enabled using toggle or popup window.'),
);
@@ -753,16 +951,26 @@ function fckeditor_profile_form($edit) {
return $output;
}
+/**
+ * Return an HTML form for global profile configuration.
+ */
+function fckeditor_global_profile_form($edit) {
+
+ $output .= drupal_get_form('fckeditor_global_profile_form_build', $edit);
+
+ return $output;
+}
+
function fckeditor_load_toolbar_options() {
$arr = array();
- $module_drupal_path = drupal_get_path('module', 'fckeditor');
- $fckconfig_js = $module_drupal_path . '/fckeditor/fckconfig.js';
- $fckeditor_config_js = $module_drupal_path . '/fckeditor.config.js';
+ $module_drupal_path = drupal_get_path('module', 'fckeditor');
+ $fckconfig_js = $module_drupal_path .'/fckeditor/fckconfig.js';
+ $fckeditor_config_js = $module_drupal_path .'/fckeditor.config.js';
if (file_exists($fckconfig_js) && is_readable($fckconfig_js)) {
$fp = @fopen($fckconfig_js, "r");
if ($fp) {
while (!feof($fp)) {
- $line = fgets($fp,1024);
+ $line = fgets($fp, 1024);
if (preg_match("/FCKConfig\.ToolbarSets\[(\"|')(.*?)\\1\]/i", $line, $matches)) {
$arr[$matches[2]] = ucfirst($matches[2]);
}
@@ -774,7 +982,7 @@ function fckeditor_load_toolbar_options() {
$fp = @fopen($fckeditor_config_js, "r");
if ($fp) {
while (!feof($fp)) {
- $line = fgets($fp,1024);
+ $line = fgets($fp, 1024);
if (preg_match("/FCKConfig\.ToolbarSets\[(\"|')(.*?)\\1\]/i", $line, $matches)) {
$arr[$matches[2]] = ucfirst($matches[2]);
}
@@ -797,16 +1005,16 @@ function fckeditor_load_toolbar_options() {
function fckeditor_load_skin_options() {
$arr = array();
- $module_drupal_path = drupal_get_path('module', 'fckeditor');
- $skin_dir = $module_drupal_path . '/fckeditor/editor/skins';
+ $module_drupal_path = drupal_get_path('module', 'fckeditor');
+ $skin_dir = $module_drupal_path .'/fckeditor/editor/skins';
if (is_dir($skin_dir)) {
$dh = @opendir($skin_dir);
- if( false !== $dh ) {
- while(($file = readdir($dh)) !== false ) {
- if(in_array($file, array(".","..","CVS",".svn"))){
+ if (false !== $dh) {
+ while (($file = readdir($dh)) !== false ) {
+ if (in_array($file, array(".", "..", "CVS", ".svn"))) {
continue;
}
- if(is_dir($skin_dir.DIRECTORY_SEPARATOR.$file)) {
+ if (is_dir($skin_dir . DIRECTORY_SEPARATOR . $file)) {
$arr[$file] = ucfirst($file);
}
}
@@ -827,16 +1035,16 @@ function fckeditor_load_skin_options() {
function fckeditor_load_lang_options() {
$arr = array();
- $module_drupal_path = drupal_get_path('module', 'fckeditor');
- $lang_dir = $module_drupal_path . '/fckeditor/editor/lang';
+ $module_drupal_path = drupal_get_path('module', 'fckeditor');
+ $lang_dir = $module_drupal_path .'/fckeditor/editor/lang';
if (is_dir($lang_dir)) {
$dh = @opendir($lang_dir);
- if( false !== $dh ) {
- while(($file = readdir($dh)) !== false) {
- if(in_array($file, array(".","..","CVS",".svn"))){
+ if (false !== $dh ) {
+ while (($file = readdir($dh)) !== false) {
+ if (in_array($file, array(".", "..", "CVS", ".svn"))) {
continue;
}
- if(is_file($lang_dir.DIRECTORY_SEPARATOR.$file) && preg_match("/^(.*?)\.js$/",$file,$matches)) {
+ if (is_file($lang_dir . DIRECTORY_SEPARATOR . $file) && preg_match("/^(.*?)\.js$/", $file, $matches)) {
$lang = $matches[1];
$arr[$lang] = strtoupper($lang);
}
@@ -859,9 +1067,9 @@ function fckeditor_load_lang_options() {
'de' => 'German',
'el' => 'Greek',
'en' => 'English',
- 'en-au' => 'English (Australia)',
- 'en-ca' => 'English (Canadian)',
- 'en-uk' => 'English (United Kingdom)',
+ 'en-au' => 'English (Australia)',
+ 'en-ca' => 'English (Canadian)',
+ 'en-uk' => 'English (United Kingdom)',
'eo' => 'Esperanto',
'es' => 'Spanish',
'et' => 'Estonian',
@@ -888,20 +1096,20 @@ function fckeditor_load_lang_options() {
'no' => 'Norwegian',
'pl' => 'Polish',
'pt' => 'Portuguese (Portugal)',
- 'pt-br' => 'Portuguese (Brazil)',
+ 'pt-br' => 'Portuguese (Brazil)',
'ro' => 'Romanian',
'ru' => 'Russian',
'sk' => 'Slovak',
'sl' => 'Slovenian',
'sr' => 'Serbian (Cyrillic)',
- 'sr-latn' => 'Serbian (Latin)',
+ 'sr-latn' => 'Serbian (Latin)',
'sv' => 'Swedish',
'th' => 'Thai',
'tr' => 'Turkish',
'uk' => 'Ukrainian',
'vi' => 'Vietnamese',
'zh' => 'Chinese Traditional',
- 'zh-cn' => 'Chinese Simplified',
+ 'zh-cn' => 'Chinese Simplified',
);
}
@@ -911,6 +1119,153 @@ function fckeditor_load_lang_options() {
}
/**
+ * sort roles according to precedence settings. previously sorted roles are followed by latest added roles.
+ */
+function fckeditor_sorted_roles() {
+ static $order;
+ if (isset($order)) {
+ return $order;
+ }
+ $order = array();
+ $roles = user_roles(0, 'access fckeditor');
+
+ $result = db_query("SELECT settings FROM {fckeditor_settings} WHERE name='FCKeditor Global Profile'");
+ $data = db_fetch_object($result);
+ if ($data->settings) {
+ $settings = unserialize($data->settings);
+ if (isset($settings['rank']) && !empty($settings['rank']))
+ foreach ($settings['rank'] as $rid) {
+ if (isset($roles[$rid])) {
+ $order[$rid] = $roles[$rid];
+ unset($roles[$rid]);
+ }
+ }
+ }
+ krsort($roles);//sort the remaining unsorted roles by id, descending.
+ $order += $roles;
+ return $order;
+}
+
+function fckeditor_global_profile_form_build($sth, $edit) {
+ $edit = (object) $edit;
+
+ if (arg(3) == 'addg') {
+ drupal_set_breadcrumb(array(l(t('administer'), 'admin'), l(t('fckeditor'), 'admin/settings/fckeditor'), l(t('Add new FCKeditor Global Profile'), 'admin/settings/fckeditor/addg')));
+
+ $result = db_query("SELECT DISTINCT(rid) FROM {fckeditor_role} WHERE name='FCKeditor Global Profile'");
+ $data = db_fetch_object($result);
+
+ if ($data->rid) {
+ drupal_set_message(t("Global profile already exist. Only one global profile is allowed."), "error");
+ return array();
+ }
+
+ $btn = t('Create global profile');
+ }
+ else {
+ $form['old_name'] = array('#type' => 'hidden', '#value' => $edit->name);
+ $btn = t('Update global profile');
+ }
+
+ $form['common'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Main setup'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE
+ );
+
+ $roles = fckeditor_sorted_roles();
+ $rids = $rtext = array();
+ foreach ($roles as $rid => $name) {
+ $rids[] = $rid;
+ $rtext[] = '<strong>'. $rid .' - </strong>'. $name;
+ }
+ $form['common']['rank'] = array('#type' => 'textfield',
+ '#title' => t('Role precedence'),
+ '#default_value' => implode('>', $rids),
+ '#description' => t('A user having <strong>multiple roles</strong> gets the permissions of the highest one. Sort role IDs according to their <strong>precedence from higher to lower</strong> by putting > in between.<br />'),
+ );
+ if ($rids) {
+ $form['common']['rank']['#description'] .= t('Here is the id-name pairs of roles having access to FCKeditor:') .'<div>'. implode('<br />', $rtext) .'</div>';
+ }
+ else {
+ $form['common']['rank']['#description'] .= t('You haven\'t assigned the <code>!access1</code> !permissions yet.', array('!access1' => t('access fckeditor'), '!permissions' => l(t('permissions'), 'admin/user/permissions')));
+ }
+
+ $form['fckeditor_exclude_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Visibility settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ );
+
+ $form['fckeditor_exclude_settings']['excl_mode'] = array(
+ '#type' => 'select',
+ '#title' => t('Use inclusion or exclusion mode'),
+ '#default_value' => (in_array($edit->settings['excl_mode'], array(0, 2))) ? 0 : 1,
+ '#options' => array('0' => t('exclude'), '1' => t('include')),
+ '#description' => t('Choose the way of disabling/enabling FCKeditor on selected fields/paths (see below). Use exclude to disable FCKeditor on selected fields/paths. Use include if you want to load FCKeditor only on selected paths/fields.'),
+ );
+
+ /**
+ * get excluded fields - so we can have normal textareas too
+ * split the phrase by any number of commas or space characters,
+ * which include " ", \r, \t, \n and \f
+ */
+ $form['fckeditor_exclude_settings']['excl_fields'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Fields to exclude/include'),
+ '#cols' => 60,
+ '#rows' => 5,
+ '#prefix' => '<div style="margin-left:20px">',
+ '#suffix' => '</div>',
+ '#default_value' => $edit->settings['excl_fields'] ? $edit->settings['excl_fields'] : '',
+ '#description' => t("Enter names (HTML ID's) of fields that may or may not have an FCKeditor, depending on the chosen option for the inclusion/exclusion mode.<br />You may separate the different entries by commas, spaces or newlines."),
+ );
+
+ /**
+ * get excluded paths - so we can have normal textareas too
+ * split the phrase by any number of commas or space characters,
+ * which include " ", \r, \t, \n and \f
+ */
+ $form['fckeditor_exclude_settings']['excl_paths'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Paths to exclude/include'),
+ '#prefix' => '<div style="margin-left:20px">',
+ '#suffix' => '</div>',
+ '#cols' => 60,
+ '#rows' => 5,
+ '#default_value' => $edit->settings['excl_paths'] ? $edit->settings['excl_paths'] : '',
+ '#description' => t("Enter drupal paths here, depending on the chosen option for the inclusion/exclusion mode.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. <br />You may also use * as a wildcard character (for example <code>comment/*</code>)."),
+ );
+
+ $form['fckeditor_exclude_settings']['simple_incl_fields'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Force simplified toolbar on the following fields'),
+ '#cols' => 60,
+ '#rows' => 5,
+ '#default_value' => $edit->settings['simple_incl_fields'] ? $edit->settings['simple_incl_fields'] : '',
+ '#description' => t("Enter names (HTML ID's) of fields that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />You may separate the different entries by commas, spaces or newlines."),
+ );
+
+ $form['fckeditor_exclude_settings']['simple_incl_paths'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Force simplified toolbar on the following paths'),
+ '#cols' => 60,
+ '#rows' => 5,
+ '#default_value' => $edit->settings['simple_incl_paths'] ? $edit->settings['simple_incl_paths'] : '',
+ '#description' => t("Enter drupal paths that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines.<br />You may also use * as a wildcard character (for example <code>comment/*</code>)."),
+ );
+
+ $form['submit'] = array(
+ '#type' => 'submit',
+ '#value' => $btn
+ );
+
+ return $form;
+}
+
+/**
* Return an HTML form for profile configuration.
*/
function fckeditor_profile_form_build($sth, $edit) {
@@ -925,19 +1280,15 @@ function fckeditor_profile_form_build($sth, $edit) {
$orig_roles = user_roles(FALSE, 'access fckeditor');
$roles = $orig_roles;
if (arg(3) == 'add') {
+ drupal_set_breadcrumb(array(l(t('administer'), 'admin'), l(t('fckeditor'), 'admin/settings/fckeditor'), l(t('Add new FCKeditor profile'), 'admin/settings/fckeditor/add')));
+
$result = db_query('SELECT DISTINCT(rid) FROM {fckeditor_role}');
while ($data = db_fetch_object($result)) {
- if (!in_array($data->rid, array_keys((array) $edit->rids)) && !form_get_errors()){
+ if (!in_array($data->rid, array_keys((array) $edit->rids)) && !form_get_errors()) {
unset($roles[$data->rid]);
}
}
- if (!$orig_roles) {
- drupal_set_message(t('You must <a href="!access-control-url">assign</a> at least one role with the \'access fckeditor\' permission before creating a profile.', array('!access-control-url' => url('admin/user/permissions'),'!access1'=>t('access fckeditor'))), 'error');
- }
- else if (!$roles) {
- drupal_set_message(t('You will not be allowed to create a new profile since all user roles have already been assigned profiles. Either remove an existing fckeditor profile from at least one role or assign another role the \'access fckeditor\' permission.'), 'error');
- }
- else if (count($orig_roles) != count($roles)) {
+ if (count($orig_roles) != count($roles)) {
drupal_set_message(t('Not all user roles are shown since they already have fckeditor profiles. You must first unassign profiles in order to add them to a new one.'));
}
$btn = t('Create profile');
@@ -969,7 +1320,7 @@ function fckeditor_profile_form_build($sth, $edit) {
'#title' => t('Roles allowed to use this profile'),
'#default_value' => array_keys((array) $edit->rids),
'#options' => $roles,
- '#description' => t('Check at least one role. Only roles with \'!access1\' permission will be shown here.', array('!access1' => t('access fckeditor'))),
+ '#description' => t('Only roles with \'!access1\' permission will be shown here. If no role is available, make sure that you have assigned the \'!access1\' !permission.', array('!access1' => t('access fckeditor'), '!permission' => l(t("permission"), "admin/user/permissions"))),
'#required' => TRUE
);
@@ -996,15 +1347,11 @@ function fckeditor_profile_form_build($sth, $edit) {
);
$form['fckeditor_exclude_settings']['excl_mode'] = array(
- '#type' => 'radios',
+ '#type' => 'select',
'#title' => t('Use inclusion or exclusion mode'),
- '#default_value' => $edit->settings['excl_mode'] ? $edit->settings['excl_mode'] : '0',
- '#options' => array(
- '0' => t('Exclude fields, will disable the editor on all selected fields'),
- '1' => t('Include fields, will only load the editor for the selected fields'),
- '2' => t('Exclude paths, will disable the editor for all textareas at the configured paths'),
- '3' => t('Include paths, will load the editor for all large enough textareas at the configured paths.')),
- '#description' => t('Choose what to do with the following values.'),
+ '#default_value' => (in_array($edit->settings['excl_mode'], array(0, 2))) ? 0 : 1,
+ '#options' => array('0' => t('exclude'), '1' => t('include')),
+ '#description' => t('Choose the way of disabling/enabling FCKeditor on selected fields/paths (see below). Use exclude to disable FCKeditor on selected fields/paths. Use include if you want to load FCKeditor only on selected paths/fields.'),
);
/**
@@ -1012,38 +1359,52 @@ function fckeditor_profile_form_build($sth, $edit) {
* split the phrase by any number of commas or space characters,
* which include " ", \r, \t, \n and \f
*/
- $form['fckeditor_exclude_settings']['excl_list'] = array(
+ $form['fckeditor_exclude_settings']['excl_fields'] = array(
'#type' => 'textarea',
- '#title' => t('Selected fields or paths'),
+ '#title' => t('Fields to exclude/include'),
'#cols' => 60,
'#rows' => 5,
- '#default_value' => $edit->settings['excl_list'] ? $edit->settings['excl_list'] : '',
- '#description' => t("Enter fieldnames or drupal paths here, depending on the chosen option for the inclusion mode.<br />Names (HTML ID's) of fields that may or may not have an FCKeditor.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."),
-);
-
- $form['fckeditor_exclude_settings']['simple_incl_mode'] = array(
- '#type' => 'radios',
- '#title' => t('Force simplified toolbar - choose inclusion mode'),
- '#default_value' => $edit->settings['simple_incl_mode'] ? $edit->settings['simple_incl_mode'] : '1',
- '#options' => array(
- '1' => t('Include fields, will only load the simplified toolbar for the selected fields'),
- '3' => t('Include paths, will load the simplified toolbar at the configured paths.')),
- '#description' => t('Choose what to do with the following values.<br/>FCKeditor will force the <code>!simple</code> toolbar on the selected fields.<br/>Useful for smaller textareas where we usually don\'t use very complicated HTML code, like in signatures.',array('!simple' => FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME)),
+ '#prefix' => '<div style="margin-left:20px">',
+ '#suffix' => '</div>',
+ '#default_value' => $edit->settings['excl_fields'] ? $edit->settings['excl_fields'] : '',
+ '#description' => t("Enter names (HTML ID's) of fields that may or may not have an FCKeditor, depending on the chosen option for the inclusion/exclusion mode.<br />You may separate the different entries by commas, spaces or newlines."),
);
/**
- * get excluded fields - so we can have normal textareas too
+ * get excluded paths - so we can have normal textareas too
* split the phrase by any number of commas or space characters,
* which include " ", \r, \t, \n and \f
*/
- $form['fckeditor_exclude_settings']['simple_incl_list'] = array(
+ $form['fckeditor_exclude_settings']['excl_paths'] = array(
'#type' => 'textarea',
- '#title' => t('Selected fields or paths where simplified toolbar should appear'),
+ '#title' => t('Paths to exclude/include'),
+ '#prefix' => '<div style="margin-left:20px">',
+ '#suffix' => '</div>',
'#cols' => 60,
'#rows' => 5,
- '#default_value' => $edit->settings['simple_incl_list'] ? $edit->settings['simple_incl_list'] : '',
- '#description' => t("If you don't want to use this feature, simply leave this field empty.<br />Enter fieldnames or drupal paths here, depending on the chosen option.<br />Names (HTML ID's) of fields that should have a simplified toolbar.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."),
-);
+ '#default_value' => $edit->settings['excl_paths'] ? $edit->settings['excl_paths'] : '',
+ '#description' => t("Enter drupal paths here, depending on the chosen option for the inclusion/exclusion mode.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. <br />You may also use * as a wildcard character (for example <code>comment/*</code>)."),
+ );
+
+ $form['fckeditor_exclude_settings']['simple_incl_fields'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Force simplified toolbar on the following fields'),
+ '#cols' => 60,
+ '#rows' => 5,
+ //'#prefix' => t('Here you can define where FCKeditor should force the <code>!simple</code> toolbar.<br/>Useful for smaller textareas where we usually don\'t use very complicated HTML code, like in signatures.', array('!simple' => FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME)),
+ '#default_value' => $edit->settings['simple_incl_fields'] ? $edit->settings['simple_incl_fields'] : '',
+ '#description' => t("Enter names (HTML ID's) of fields that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />You may separate the different entries by commas, spaces or newlines."),
+ );
+
+ $form['fckeditor_exclude_settings']['simple_incl_paths'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Force simplified toolbar on the following paths'),
+ '#cols' => 60,
+ '#rows' => 5,
+ //'#prefix' => t('Here you can define where FCKeditor should force the <code>!simple</code> toolbar.<br/>Useful for smaller textareas where we usually don\'t use very complicated HTML code, like in signatures.', array('!simple' => FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME)),
+ '#default_value' => $edit->settings['simple_incl_paths'] ? $edit->settings['simple_incl_paths'] : '',
+ '#description' => t("Enter drupal paths that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines.<br />You may also use * as a wildcard character (for example <code>comment/*</code>)."),
+ );
$form['appearance'] = array(
'#type' => 'fieldset',
@@ -1056,7 +1417,7 @@ function fckeditor_profile_form_build($sth, $edit) {
'#type' => 'select',
'#title' => t('Default state'),
'#default_value' => $edit->settings['default'] ? $edit->settings['default'] : 't',
- '#options' => array('t' => t('enabled'),'f' => t('disabled')),
+ '#options' => array('t' => t('enabled'), 'f' => t('disabled')),
'#description' => t('Default editor state. If disabled, rich text editor may still be enabled using toggle or popup window.'),
);
@@ -1125,15 +1486,15 @@ function fckeditor_profile_form_build($sth, $edit) {
'#description' => t('Use auto detect user language feature.')
);
-/*
-$form['appearance']['appearance_conf'] = array(
-'#type' => 'select',
-'#title' => t('Ignore this section, use default settings defined in config files'),
-'#default_value' => $edit->settings['appearance_conf'] ? $edit->settings['appearance_conf'] : 'f',
-'#options' => array('f' => t('false'), 't' => t('true')),
-'#description' => t('Although it is less handy, defining settings only in config files (<code>fckconfig.js</code> and <code>fckeditor.config.js</code>) will slightly leverage your traffic and improve load time of your site. <br/>Warning: if set to true, all changes made in <code>Editor appearance</code> will have no affect on FCKeditor\'s behaviour.'),
-);
-*/
+ /*
+ $form['appearance']['appearance_conf'] = array(
+ '#type' => 'select',
+ '#title' => t('Ignore this section, use default settings defined in config files'),
+ '#default_value' => $edit->settings['appearance_conf'] ? $edit->settings['appearance_conf'] : 'f',
+ '#options' => array('f' => t('false'), 't' => t('true')),
+ '#description' => t('Although it is less handy, defining settings only in config files (<code>fckconfig.js</code> and <code>fckeditor.config.js</code>) will slightly leverage your traffic and improve load time of your site. <br/>Warning: if set to true, all changes made in <code>Editor appearance</code> will have no affect on FCKeditor\'s behaviour.'),
+ );
+ */
$form['output'] = array(
'#type' => 'fieldset',
@@ -1183,15 +1544,15 @@ $form['appearance']['appearance_conf'] = array(
'#description' => t('When set to "true" the editor will format the XHTML output by inserting line breaks on some tags endings and indenting paragraphs, tables and lists.'),
);
-/*
-$form['output']['output_conf'] = array(
-'#type' => 'select',
-'#title' => t('Ignore this section, use default settings defined in config files'),
-'#default_value' => $edit->settings['output_conf'] ? $edit->settings['output_conf'] : 'f',
-'#options' => array('f' => t('false'), 't' => t('true')),
-'#description' => t('Although it is less handy, defining settings only in config files (<code>fckconfig.js</code> and <code>fckeditor.config.js</code>) will slightly leverage your traffic and improve load time of your site. <br/>Warning: if set to true, all changes made in <code>Cleanup and output</code> will have no affect on FCKeditor\'s behaviour.'),
-);
-*/
+ /*
+ $form['output']['output_conf'] = array(
+ '#type' => 'select',
+ '#title' => t('Ignore this section, use default settings defined in config files'),
+ '#default_value' => $edit->settings['output_conf'] ? $edit->settings['output_conf'] : 'f',
+ '#options' => array('f' => t('false'), 't' => t('true')),
+ '#description' => t('Although it is less handy, defining settings only in config files (<code>fckconfig.js</code> and <code>fckeditor.config.js</code>) will slightly leverage your traffic and improve load time of your site. <br/>Warning: if set to true, all changes made in <code>Cleanup and output</code> will have no affect on FCKeditor\'s behaviour.'),
+ );
+ */
$form['css'] = array(
'#type' => 'fieldset',
@@ -1214,64 +1575,107 @@ $form['output']['output_conf'] = array(
'#default_value' => $edit->settings['css_path'],
'#size' => 40,
'#maxlength' => 255,
- '#description' => t('Enter path to CSS file (<em>example: "css/editor.css"</em>) or a list of css files seperated by a comma (<em>example: /themes/garland/style.css,http://example.com/style.css</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme)<br />Be sure to select "define css" above.', array('!host' => base_path(), '!theme' => path_to_theme() . '/'))
+ '#description' => t('Enter path to CSS file (<em>example: css/editor.css</em>) or a list of css files seperated by a comma (<em>example: /themes/garland/style.css,http://example.com/style.css</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme)<br />Be sure to select "define css" above.', array('!host' => base_path(), '!theme' => path_to_theme() .'/'))
);
$form['css']['css_style'] = array(
- '#type' => 'item',
- '#title' => t('CSS classes'),
- '#value' => t('Requires manual configuration.'),
- '#description' => t('Style dropdown list loads styles defined in <code>!fckstyles.xml</code>. Copy this file inside your theme directory (<code>!theme</code>) and adjust it to your needs. If you modify the original file, changes will be applied to all themes, however it may get overwritten if you upgrade FCKeditor.', array('!fckstyles.xml' => drupal_get_path('module', 'fckeditor').'/fckeditor/fckstyles.xml', '!theme' => path_to_theme() . '/fckstyles.xml'))
+ '#type' => 'select',
+ '#title' => t('Predefined styles'),
+ '#default_value' => $edit->settings['css_style'] ? $edit->settings['css_style'] : 'theme',
+ '#options' => array('theme' => t('use theme fckstyles.xml'), 'self' => t('define path to fckstyles.xml'), 'default' => t('FCKeditor default')),
+ '#description' => t('Define the location of <code>fckstyles.xml</code> file. It is used by the &quot;Style&quot; dropdown list available in the Default toolbar.<br />Copy !fckstyles.xml inside your theme directory (<code>!theme</code>) and adjust it to your needs.', array('!fckstyles.xml' => drupal_get_path('module', 'fckeditor') .'/fckeditor/fckstyles.xml', '!theme' => path_to_theme() .'/fckstyles.xml'))
);
-// don't show useless options if IMCE is preferred
-if (function_exists('imce_integrate') && variable_get('imce_settings_fck', 0)) {
- $form['fckeditor_upload_settings'] = array(
- '#type' => 'fieldset',
- '#title' => t('File browser settings'),
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- '#description' => t('The file browser settings are not diplayed because you have configured IMCE to handle file browsing.')
+ $form['css']['styles_path'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Predefined styles path'),
+ '#default_value' => $edit->settings['styles_path'],
+ '#size' => 40,
+ '#maxlength' => 255,
+ '#description' => t('Enter path to XML file with predefined styles (<em>example: /fckstyles.xml</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme), %m (path to FCKeditor module: !module)<br />Be sure to select "define path to fckstyles.xml" above.', array('!host' => base_path(), '!theme' => path_to_theme() .'/', '!module' => drupal_get_path('module', 'fckeditor')))
);
-}
-else {
- $form['fckeditor_upload_settings'] = array(
+
+ // don't show useless options if IMCE is preferred
+ if (function_exists('imce_integrate') && variable_get('imce_settings_fck', 0)) {
+ $form['fckeditor_upload_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('File browser settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ '#description' => t('The file browser settings are not diplayed because you have configured IMCE to handle file browsing.')
+ );
+ }
+ else {
+ $form['fckeditor_upload_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('File browser settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ '#description' => t('Set file browser settings. If you enable file uploads and disable basic and advanced file management, you will need to manage your images and other files with the core upload module or a contrib module like !imce. Please note that these options require manual configuration, check !readme for more information.<br />',
+ array(
+ '!imce' => l(t('IMCE'), 'http://drupal.org/project/imce'),
+ '!readme' => l('readme.txt', 'admin/help/fckeditor'),
+ )
+ )
+ );
+ $form['fckeditor_upload_settings']['upload_basic'] = array(
+ '#type' => 'select',
+ '#options' => array('f' => t('false'), 't' => t('true')),
+ '#title' => t('Allow basic file management'),
+ '#default_value' => $edit->settings['upload_basic'] ? $edit->settings['upload_basic'] : 'f',
+ '#description' => t("Allow quick uploads."),
+ );
+ $form['fckeditor_upload_settings']['upload_advanced'] = array(
+ '#type' => 'select',
+ '#options' => array('f' => t('false'), 't' => t('true')),
+ '#title' => t('Allow advanced file management'),
+ '#default_value' => $edit->settings['upload_advanced'] ? $edit->settings['upload_advanced'] : 'f',
+ '#description' => t('Allow file management in the advanced file manager.'),
+ );
+
+ $current_user_files_path = strtr($edit->settings['UserFilesPath'], array("%f" => file_directory_path(), "%u" => "UID", "%b" => base_path()));
+ $current_user_files_absolute_path = strtr($edit->settings['UserFilesAbsolutePath'], array("%f" => file_directory_path(), "%u" => "UID", "%b" => base_path(), "%d" => $_SERVER['DOCUMENT_ROOT']));
+
+ $form['fckeditor_upload_settings']['UserFilesPath'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Path to uploaded files'),
+ '#default_value' => $edit->settings['UserFilesPath'] ? $edit->settings['UserFilesPath'] : "%b%f/",
+ '#size' => 40,
+ '#maxlength' => 255,
+ '#description' => t('Path to uploaded files relative to the document root.<br />Available wildcard characters:<br/><strong>%b</strong> - base URL path of the Drupal installation (!base).<br/><strong>%f</strong> - Drupal file system path where the files are stored (!files).<br /><strong>%u</strong> - User ID.<br />Current path: !path', array('!path' => $current_user_files_path, '!files' => file_directory_path(), '!base' => base_path())),
+ );
+ $form['fckeditor_upload_settings']['UserFilesAbsolutePath'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Absolute path to uploaded files'),
+ '#default_value' => $edit->settings['UserFilesAbsolutePath'] ? $edit->settings['UserFilesAbsolutePath'] : "%d%b%f/",
+ '#size' => 40,
+ '#maxlength' => 255,
+ '#description' => t('The path to the local directory (in the server) which points to the path defined above. If empty, FCKeditor will try to discover the right path.<br />Available wildcard characters:<br/><strong>%d</strong> - server path to document root (!root).<br /><strong>%b</strong> - base URL path of the Drupal installation (!base).<br/><strong>%f</strong> - Drupal file system path where the files are stored (!files).<br /><strong>%u</strong> - User ID.<br />Current path: !path', array('!path' => $current_user_files_absolute_path, '!files' => file_directory_path(), '!base' => base_path(), '!root' => $_SERVER['DOCUMENT_ROOT'])),
+ );
+ }
+
+ $form['advanced'] = array(
'#type' => 'fieldset',
- '#title' => t('File browser settings'),
+ '#title' => t('Advanced options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
- '#description' => t('Set file browser settings. If you enable file uploads and disable basic and advanced file management, you will need to manage your images and other files with the core upload module or a contrib module like !imce. Please note that these options require manual configuration, check !readme for more information.<br />',
- array(
- '!imce' => l(t('IMCE'), 'http://drupal.org/project/imce'),
- '!readme' => l('readme.txt', 'admin/help/fckeditor'),
- )
- )
- );
- /*
- //This one is handled in Access Control page
- $form['fckeditor_upload_settings']['upload_allow'] = array(
- '#type' => 'select',
- '#options' => array('f' => t('false'), 't' => t('true')),
- '#title' => t('Allow FCKeditor file uploads'),
- '#default_value' => $edit->settings['upload_allow'] ? $edit->settings['upload_allow'] : 'f',
- '#description' => t("Allow file uploads."),
- );
- */
- $form['fckeditor_upload_settings']['upload_basic'] = array(
- '#type' => 'select',
- '#options' => array('f' => t('false'), 't' => t('true')),
- '#title' => t('Allow basic file management'),
- '#default_value' => $edit->settings['upload_basic'] ? $edit->settings['upload_basic'] : 'f',
- '#description' => t("Allow quick uploads. All files will be placed in the directory designated in the configuration file."),
);
- $form['fckeditor_upload_settings']['upload_advanced'] = array(
- '#type' => 'select',
- '#options' => array('f' => t('false'), 't' => t('true')),
- '#title' => t('Allow advanced file management'),
- '#default_value' => $edit->settings['upload_advanced'] ? $edit->settings['upload_advanced'] : 'f',
- '#description' => t('Allow file management in the advanced file manager. All files will be placed in subdirectories of the default drupal upload directory.'),
- );
-}
+ $form['advanced']['js_conf'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Custom javascript configuration'),
+ '#default_value' => $edit->settings['js_conf'],
+ '#cols' => 60,
+ '#rows' => 5,
+ '#description' => t('Warning: to change FCKeditor configuration globally, you should modify the config file: <code>!fckeditor_config</code>.<br/>Sometimes it is required to change the FCKeditor configuration for selected profile. Use this box to define settings that are uniqe for this profile.<br/>Available options are listed in the !docs.<br/>Warning: if you make something wrong here, FCKeditor may fail to load.<br/>For example to disable some advanced tabs in dialog windows in FCKeditor, add the following: !example',
+ array(
+ '!fckeditor_config' => drupal_get_path('module', 'fckeditor') ."/fckeditor.config.js",
+ '!docs' => l(t("FCKeditor documentation"), "http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options"),
+ "!example" => "<pre>LinkDlgHideTarget = true ;
+LinkDlgHideAdvanced = true ;
+ImageDlgHideLink = true ;
+ImageDlgHideAdvanced = true ;
+FlashDlgHideAdvanced = true ;</pre>")
+));
$form['submit'] = array(
'#type' => 'submit',
@@ -1294,7 +1698,7 @@ return $form;
*/
function fckeditor_idsearch($search, $array) {
foreach ($array as $key => $value) {
- if (!empty($value) && preg_match('/^'.str_replace('*','.*',addslashes($value)).'$/i', $search)) {
+ if (!empty($value) && preg_match('/^'. str_replace('*', '.*', addslashes($value)) .'$/i', $search)) {
// on any first match we know we're done here so return positive
return true;
}
@@ -1312,7 +1716,7 @@ function fckeditor_idsearch($search, $array) {
*/
function fckeditor_is_compatible_client() {
- $fckeditor_main_file = drupal_get_path('module', 'fckeditor') . '/fckeditor/fckeditor.php';
+ $fckeditor_main_file = drupal_get_path('module', 'fckeditor') .'/fckeditor/fckeditor.php';
if (file_exists($fckeditor_main_file)) {
include $fckeditor_main_file;
if (function_exists('FCKeditor_IsCompatibleBrowser')) {
@@ -1327,7 +1731,7 @@ function fckeditor_is_compatible_client() {
return false;
}
-function fckeditor_user_get_setting($user, $profile, $setting){
+function fckeditor_user_get_setting($user, $profile, $setting) {
$default = array(
'default' => 't',
'show_toggle' => 't',
@@ -1342,7 +1746,7 @@ function fckeditor_user_get_setting($user, $profile, $setting){
$settings = $profile->settings;
if ($settings['allow_user_conf']) {
- $status = isset($user->{"fckeditor_".$setting}) ? $user->{"fckeditor_".$setting} : (isset($settings[$setting]) ? $settings[$setting] : $default[$setting]);
+ $status = isset($user->{"fckeditor_". $setting}) ? $user->{"fckeditor_". $setting} : (isset($settings[$setting]) ? $settings[$setting] : $default[$setting]);
}
else {
$status = isset($settings[$setting]) ? $settings[$setting] : $default[$setting];
@@ -1353,7 +1757,7 @@ function fckeditor_user_get_setting($user, $profile, $setting){
function fckeditor_user_get_profile($account) {
$profile_name = db_result(db_query('SELECT s.name FROM {fckeditor_settings} s INNER JOIN {fckeditor_role} r ON r.name = s.name WHERE r.rid IN (%s)', implode(',', array_keys($account->roles))));
- if ($profile_name){
+ if ($profile_name) {
return fckeditor_profile_load($profile_name);
}
else {
@@ -1363,4 +1767,4 @@ function fckeditor_user_get_profile($account) {
function fckeditor_init() {
drupal_add_css(drupal_get_path('module', 'fckeditor') .'/fckeditor.css');
-}
+} \ No newline at end of file
diff --git a/fckeditor.utils.js b/fckeditor.utils.js
index fe13aaf..2b24691 100644
--- a/fckeditor.utils.js
+++ b/fckeditor.utils.js
@@ -4,6 +4,7 @@ var fckIsLaunching = new Array;
var fckLaunchedTextareaId = new Array;
var fckLaunchedJsId = new Array;
var fckFirstrun = new Array;
+var fckIsIE = ( /*@cc_on!@*/false ) ? true : false ;
function Toggle(js_id, textareaID, textTextarea, TextRTE)
{
@@ -34,7 +35,6 @@ function Toggle(js_id, textareaID, textTextarea, TextRTE)
document.getElementById('switch_' + js_id).innerHTML = textTextarea;
// Switch the DIVs display.
- eTextarea.style.display = 'none';
eFCKeditorDiv.style.display = '';
text = eTextarea.value;
@@ -47,6 +47,7 @@ function Toggle(js_id, textareaID, textTextarea, TextRTE)
if ( text.length ) {
oEditor.SetHTML( text, false);
}
+ eTextarea.style.display = 'none';
// This is a hack for Gecko 1.0.x ... it stops editing when the editor is hidden.
if (oEditor && !document.all)
@@ -130,6 +131,7 @@ function FCKeditor_OnComplete( editorInstance )
}
else {
$('#edit-teaser-js').val('');
+ $('#edit-teaser-js').attr('disabled', 'disabled');
document.getElementById( fckLaunchedTextareaId[i] ).value = text;
if ($('input[@class=teaser-button]').attr('value') == Drupal.t('Join summary')) {
try {$('input[@class=teaser-button]').click();} catch(e) {$('input[@class=teaser-button]').val(Drupal.t('Join summary'));}
@@ -144,6 +146,9 @@ function FCKeditor_OnComplete( editorInstance )
$('#edit-teaser-js').parent().hide();
$('#edit-teaser-include').parent().show();
+ //Img_Assist integration
+ IntegrateWithImgAssist();
+
// -- some hacks for IE
var oldCheckAndRemovePaddingNode = editorInstance.EditorWindow.parent.FCKDomTools.CheckAndRemovePaddingNode ;
@@ -169,3 +174,13 @@ function FCKeditor_OnComplete( editorInstance )
// -- some hacks for IE
}
+function IntegrateWithImgAssist()
+{
+ var link = document.getElementsByTagName("a");
+ for (var i = 0; i < link.length; i++) {
+ cl = link[i].getAttribute("class");
+ if ( cl == "img_assist-link") {
+ link[i].href = link[i].href.replace("/load/textarea", "/load/fckeditor");
+ }
+ }
+} \ No newline at end of file
diff --git a/po/fckeditor.pot b/po/fckeditor.pot
index ae9e44c..617dd3e 100644
--- a/po/fckeditor.pot
+++ b/po/fckeditor.pot
@@ -2,552 +2,782 @@
#
# LANGUAGE translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
-# No version information was available in the source files.
+# Generated from files:
+# fckeditor.module,v 1.19.2.6.2.10 2008/02/09 16:00:14 wwalc
+# fckeditor.info,v 1.1.2.1.2.1 2007/10/30 13:42:51 wwalc
+# fckeditor.install,v 1.2 2007/11/15 16:15:47 wwalc
+# fckeditor.utils.js,v 1.2 2007/11/15 16:15:47 wwalc
#
+#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2007-10-30 09:59+0100\n"
-"PO-Revision-Date: 2007-10-30 10:44+0100\n"
-"Last-Translator: Wiktor Walc <w.walc@fckeditor.net>\n"
-"Language-Team: FCKeditor <EMAIL@ADDRESS>\n"
+"Project-Id-Version: PROJECT VERSION\n"
+"POT-Creation-Date: 2008-02-12 18:32+0100\n"
+"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
+"Last-Translator: NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: Plural-Forms: nplurals=2; plural=(n != 1);\\n\n"
-"X-Poedit-Language: LANGUAGE\n"
-"X-Poedit-Country: COUNTRY\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-#: fckeditor.module:45
+#: fckeditor.module:44
+msgid "<p>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 <code>!fckconfig</code> and then customize <code>!fckeditor_config</code> to your needs. This is also the only way to define new toolbar sets. It is advised to not edit <code>fckconfig.js</code> because you may overwrite it accidentally when you update the editor.</p>"
+msgstr ""
+
+#: fckeditor.module:49
msgid "Enables the usage of FCKeditor (WYSIWYG editor) instead of plain text fields."
msgstr ""
-#: fckeditor.module:48
-msgid "<p>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 <code>!fckconfig</code> and then customize <code>!fckeditor_config</code> to your needs. This is also the only way to define new toolbar sets. It is advised to not edit <code>fckconfig.js</code> because you may overwrite it accidentally when you update the editor.</p>"
+#: fckeditor.module:53
+msgid "<p>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.</p>"
msgstr ""
-#: fckeditor.module:51;59
-msgid "<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>"
+#: fckeditor.module:56
+msgid "<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information about the editor is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>"
msgstr ""
-#: fckeditor.module:53;61;66;71
+#: fckeditor.module:58;66;71;364
msgid "FCKeditor homepage"
msgstr ""
-#: fckeditor.module:54;62
+#: fckeditor.module:59;67
msgid "FCKeditor userguide"
msgstr ""
-#: fckeditor.module:56
-msgid "<p>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.</p><p>Lastly, only users with the <code>!access1</code> <a href=\"!url\">permission</a> will be able to use FCKeditor.</p>"
+#: fckeditor.module:61
+msgid "<p>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.</p><p>Lastly, only users with the <code>!access1</code> !permission will be able to use FCKeditor. </p>"
+msgstr ""
+
+#: fckeditor.module:61;1323
+msgid "permission"
msgstr ""
-#: fckeditor.module:56;919;956
+#: fckeditor.module:61;1192;1323;133
msgid "access fckeditor"
msgstr ""
#: fckeditor.module:64
-msgid "<h3>Installation</h3><p>Go to the !fckeditorlink and download the latest version. Then uncompress the contents of the \"fckeditor\" directory of the downloaded file to %fckeditordir.</p>"
+msgid "<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>"
msgstr ""
#: fckeditor.module:69
-msgid "<h3>Installation troubleshooting</h3><p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>"
+msgid "<h3>Installation</h3><p>Go to the !fckeditorlink and download the latest version. Then uncompress the contents of the \"fckeditor\" directory of the downloaded file to %fckeditordir.</p>"
msgstr ""
#: fckeditor.module:74
-msgid "The correct directory structure is as follows: <pre>!structure</pre>"
-msgstr ""
-
-#: fckeditor.module:77
-msgid "<h3>Configuration</h3><ol><li>Modify the fckeditor.config.js file to custom your needs (optional).<br />You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li><li>Enable the module as usual from Drupal's admin pages.</li><li>Grant permissions for use of FCKeditor in <code>!path2</code></li><li>Under <code>!path1</code>, create 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 </li><li>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: <br/><code>!filter</code>. </li><li>To have a better control over line breaks, you may disable <code>Line break converter</code> in the chosen filter.</li></ol>"
+msgid "<h3>Configuration</h3><ol><li>Enable the module as usual from Drupal's admin pages.</li><li>Grant permissions for use of FCKeditor in <code>!path2</code></li><li>Under <code>!path1</code>, create 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 </li><li>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: <br/><code>!filter</code>. </li><li>To have a better control over line breaks, you may disable <code>Line break converter</code> in the chosen filter (recommended).</li><li>Modify the fckeditor.config.js file to custom your needs (optional).<br />You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li></ol>"
msgstr ""
-#: fckeditor.module:79
+#: fckeditor.module:76
msgid "Administer > Settings > FCKeditor"
msgstr ""
-#: fckeditor.module:80
+#: fckeditor.module:77
msgid "Administer > User Management > Access Control"
msgstr ""
-#: fckeditor.module:85
+#: fckeditor.module:82
msgid "filters"
msgstr ""
-#: fckeditor.module:87
+#: fckeditor.module:84
+msgid "<h3>Installation troubleshooting</h3><p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>"
+msgstr ""
+
+#: fckeditor.module:88
+msgid "The correct directory structure is as follows: <blockquote><pre>!structure</pre></blockquote>"
+msgstr ""
+
+#: fckeditor.module:91
msgid "<h3>Plugins: Teaser break and Pagebreak</h3><p>By default, FCKeditor module comes with two plugins that can handle teaser break (&lt;!--break--&gt;) and pagebreak (&lt;!--pagebreak--&gt;). You can enable any (or even both) of them.<ol><li>Open <code>!fckeditor.config.js</code> and uncomment these three lines: <pre>!code</pre></li><li>The second step is to add buttons to the toolbar (in the same file). The button names are: <code>DrupalBreak, DrupalPageBreak</code>. For example if you have a toolbar with an array of buttons defined as follows: <pre>!buttons1</pre> simply add those two buttons at the end of array: <pre>!buttons2</pre> (remember about single quotes).</li></ol></p>"
msgstr ""
-#: fckeditor.module:98
+#: fckeditor.module:102
msgid "<h3>Uploading images and files</h3><p>There are three ways of uploading files: By using the built-in file browser, by using a module like !imce or using the core upload module.</p>"
msgstr ""
-#: fckeditor.module:100;1229
+#: fckeditor.module:104;1616
msgid "IMCE"
msgstr ""
-#: fckeditor.module:103
-msgid "<h3>Security</h3><p>Note that enabling file uploads is <strong>a security risk</strong>. That's why there is a !link in Administer > User Management > Access Control for enabling the file browser to certain groups.</p>"
+#: fckeditor.module:108
+msgid "<h3>How to enable the file browser</h3><p>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).</p><p><ol><li>To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:<blockquote><code>!config3</code> <br/> (FCKeditor 2.5+)<br/><br/> or <br/><br/><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)</blockquote></p><p>In this file(s) you will need to enable the file browser by adding one line that includes file with the special authentication function for Drupal (<code>filemanager.config.php</code>). Add this code: <blockquote><code>!code1</code><br/> (FCKeditor 2.5+)</blockquote> or <blockquote><code>!code2</code> <br/> (FCKeditor 2.3.x - 2.4.x)</blockquote> straight below this line: <blockquote><code>!code3</code></blockquote> The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).</p></li>"
msgstr ""
-#: fckeditor.module:103
+#: fckeditor.module:118
+msgid "<li>As of Drupal 5.2, additional step is required: locate file named <code>settings.php</code> inside your drupal directory (usually <code>sites/default/settings.php</code>) and set <strong><code>&#36;cookie_domain</code></strong> variable to the appropiate domain (remember to uncomment that line). If you not do this, FCKeditor will claim that file browser is disabled</li>"
+msgstr ""
+
+#: fckeditor.module:119
+msgid "<li>Enabling file uploads is <strong>a security risk</strong>. That's why you have to grant a !link to enable the file browser to certain groups.</li>"
+msgstr ""
+
+#: fckeditor.module:119
msgid "separate permission"
msgstr ""
-#: fckeditor.module:105
-msgid "<h3>How to enable the file browser</h3><p>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).</p><p>To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:<br /><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)<br/><br/> or <code>!config3</code> <br/> (FCKeditor 2.5+) </p><p>In this file you will need to enable the file browser:<br /><code>&#36;Config['Enabled'] = true;</code></p><p>To use the drupal files directory you also need to adjust the following variables in the connector configuration:<br/><code>&#36;Config['UserFilesPath']</code> and <code>&#36;Config['UserFilesAbsolutePath']</code>.<br/>Point <code>&#36;Config['UserFilesPath']</code> to the path to drupal &quot;files&quot; directory and set <code>&#36;Config['UserFilesAbsolutePath']</code> to the absolute path to the same directory.</p><p>Furthermore, you will need to create a <em>'File'</em>, <em>'Image'</em>, <em>'Flash'</em> and <em>'Media'</em> subdirectory in your drupal files directory ('!filesdir'). These directories must have the same privileges as the drupal files directory. In some cases these directories must be world writable (chmod 0777).</p>"
+#: fckeditor.module:120
+msgid "<li>Lastly, adjust the !fb for each !profile.</li></ol>"
msgstr ""
-#: fckeditor.module:112
-msgid "<h3>Making File Browser more secure</h3><p>Please be aware that enabling file browser simply by setting <code>&#36;Config['Enabled'] = true;</code> theoretically enables it for each user (with a little bit of hackery, it is possible to use file browser without appropiate Drupal permissions). The more secure way of enabling file browser is as follows:</p><ol><li>Instead of setting <br/> <code>&#36;Config['Enabled'] = true ;</code><br/> add the following code: <pre>!snippet</pre> straight after <code>&#36;Config['Enabled'] = false ;</code><br/>This code enables file browser only to users that have <a href="!url">!access1</a> permission.<br/>Note: if you don't set <code>&#36;drupal_path</code> correctly, FCKeditor will find it out by itself.</li><li>As of Drupal 5.2, additional step is required: <br/> locate file named <code>settings.php</code> inside your drupal directory (usually <code>sites/default/settings.php</code>) and set <code>&#36;cookie_domain</code> variable to the appropiate domain (remember to uncomment that line).</li></ol>"
+#: fckeditor.module:120;1602;1611
+msgid "File browser settings"
msgstr ""
-#: fckeditor.module:136
-msgid "allow fckeditor file uploads"
+#: fckeditor.module:120
+msgid "profile"
msgstr ""
-#: fckeditor.module:149
-msgid "administer fckeditor"
+#: fckeditor.module:121
+msgid "<h3>Modules: Image Assist</h3><p>Image Assist can be integrated with FCKeditor. To do this, simply copy the <code>!iaf1</code> file to <code>!iaf2</code>.</p>"
msgstr ""
-#: fckeditor.module:200
-#: fckeditor.info:0
+#: fckeditor.module:185 fckeditor.info:0
msgid "FCKeditor"
msgstr ""
-#: fckeditor.module:202
+#: fckeditor.module:186
msgid "Configure the rich editor."
msgstr ""
-#: fckeditor.module:223
+#: fckeditor.module:208
+msgid "Minimum rows must be a valid number"
+msgstr ""
+
+#: fckeditor.module:212
+msgid "If FCKeditor is enabled by default, popup window must be disabled."
+msgstr ""
+
+#: fckeditor.module:216
+msgid "If toggle is enabled, popup window must be disabled."
+msgstr ""
+
+#: fckeditor.module:220
msgid "You must give a profile name."
msgstr ""
-#: fckeditor.module:227
-msgid "You must select at least one role."
+#: fckeditor.module:224
+msgid "Enter valid width. Ex: 400 or 100%"
msgstr ""
-#: fckeditor.module:250
-msgid "administer"
+#: fckeditor.module:229
+msgid "CSS path is not empty. Please set the \"Editor CSS\" option to \"define css\" mode."
msgstr ""
-#: fckeditor.module:251
-msgid "fckeditor"
+#: fckeditor.module:232
+msgid "Double quotes are not allowed in CSS path."
msgstr ""
-#: fckeditor.module:252
-msgid "Add new FCKeditor profile"
+#: fckeditor.module:235;247
+msgid "Enter valid path, do not surround it with quotes."
+msgstr ""
+
+#: fckeditor.module:241
+msgid "Path to predefined styles is not empty. Please set the \"Predefined styles\" option to \"define path to fckstyles.xml\" mode."
+msgstr ""
+
+#: fckeditor.module:244
+msgid "Double quotes are not allowed in path."
msgstr ""
-#: fckeditor.module:258
+#: fckeditor.module:253
+msgid "Enter valid, semicolon separated, list of HTML font formats (no semicolon at the end of list expected)."
+msgstr ""
+
+#: fckeditor.module:261;269;315;323
+msgid "Invalid field specified: %1"
+msgstr ""
+
+#: fckeditor.module:278;286;332;340
+msgid "Invalid path specified: %1"
+msgstr ""
+
+#: fckeditor.module:292
+msgid "Path to uploaded files is required."
+msgstr ""
+
+#: fckeditor.module:295
+msgid "Absolute path to uploaded files is required."
+msgstr ""
+
+#: fckeditor.module:360
+msgid "checking for %filename"
+msgstr ""
+
+#: fckeditor.module:362
+msgid "The FCKeditor component is not installed correctly. Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %modulepath and make sure that the directory %modulesubdir and the file %modulefile exist. Refer to the !readme for more information."
+msgstr ""
+
+#: fckeditor.module:388;393
msgid "Edit FCKeditor profile"
msgstr ""
-#: fckeditor.module:264
+#: fckeditor.module:399
msgid "Deleted profile"
msgstr ""
-#: fckeditor.module:268;927
+#: fckeditor.module:405
+msgid "Deleted Global profile"
+msgstr ""
+
+#: fckeditor.module:409;1294
msgid "Create profile"
msgstr ""
-#: fckeditor.module:269;931
+#: fckeditor.module:410;1298
msgid "Update profile"
msgstr ""
-#: fckeditor.module:272
+#: fckeditor.module:413
msgid "Your FCKeditor profile has been updated."
msgstr ""
-#: fckeditor.module:272
+#: fckeditor.module:413
msgid "Your FCKeditor profile has been created."
msgstr ""
-#: fckeditor.module:281
+#: fckeditor.module:421;1163
+msgid "Create global profile"
+msgstr ""
+
+#: fckeditor.module:422;1167
+msgid "Update global profile"
+msgstr ""
+
+#: fckeditor.module:426
+msgid "FCKeditor global profile has been saved."
+msgstr ""
+
+#: fckeditor.module:435
msgid "FCKeditor settings"
msgstr ""
-#: fckeditor.module:285
-msgid "Could not find the FCKeditor engine installed at <strong>!fckeditor-directory</strong>. Please <a href=\"http://www.fckeditor.net/download\">download FCKeditor</a>, uncompress it and copy the folder into !fckeditor-path."
+#: fckeditor.module:439
+msgid "Could not find the FCKeditor engine installed at <strong>!fckeditor-directory</strong>. Please !download, uncompress it and copy the folder into !fckeditor-path."
+msgstr ""
+
+#: fckeditor.module:439
+msgid "download FCKeditor"
msgstr ""
-#: fckeditor.module:321
+#: fckeditor.module:486;507
msgid "Profile"
msgstr ""
-#: fckeditor.module:321
+#: fckeditor.module:486
msgid "Roles"
msgstr ""
-#: fckeditor.module:321
+#: fckeditor.module:486;507
msgid "Operations"
msgstr ""
-#: fckeditor.module:323
+#: fckeditor.module:489;506
msgid "edit"
msgstr ""
-#: fckeditor.module:323
+#: fckeditor.module:489;506
msgid "delete"
msgstr ""
-#: fckeditor.module:326
-msgid "<p><a href=\"!create-profile-url\">Create new profile</a></p>"
+#: fckeditor.module:492
+msgid "Profiles"
+msgstr ""
+
+#: fckeditor.module:494
+msgid "Create new profile"
+msgstr ""
+
+#: fckeditor.module:497
+msgid "No profiles found. Click here to !create."
+msgstr ""
+
+#: fckeditor.module:497
+msgid "create a new profile"
+msgstr ""
+
+#: fckeditor.module:502
+msgid "Global Profile not found. Click here to !create."
msgstr ""
-#: fckeditor.module:329
-msgid "No profiles found. Click here to <a href=\"!create-profile-url\">create a new profile</a>."
+#: fckeditor.module:502
+msgid "create the global profile"
msgstr ""
-#: fckeditor.module:457;458
+#: fckeditor.module:505
+msgid "Global Settings"
+msgstr ""
+
+#: fckeditor.module:506
+msgid "FCKeditor Global Profile"
+msgstr ""
+
+#: fckeditor.module:649;650
msgid "Switch to plain text editor"
msgstr ""
-#: fckeditor.module:457;458
+#: fckeditor.module:649;650
msgid "Switch to rich text editor"
msgstr ""
-#: fckeditor.module:599
+#: fckeditor.module:809
msgid "Open rich editor"
msgstr ""
-#: fckeditor.module:632
+#: fckeditor.module:822
+msgid "<div class=\"textarea-identifier description\">The ID for !excluding this element is: !id - the path is: !path</div>"
+msgstr ""
+
+#: fckeditor.module:823
+msgid "excluding or including"
+msgstr ""
+
+#: fckeditor.module:846
msgid "Rich Text Editor settings"
msgstr ""
-#: fckeditor.module:640;1041
+#: fckeditor.module:854;1418
msgid "Default state"
msgstr ""
-#: fckeditor.module:642;682;1043;1083
+#: fckeditor.module:856;896;1420;1460
msgid "enabled"
msgstr ""
-#: fckeditor.module:642;682;1043;1083
+#: fckeditor.module:856;896;1420;1460
msgid "disabled"
msgstr ""
-#: fckeditor.module:643
+#: fckeditor.module:857
msgid "Should rich-text editing be enabled or disabled by default in textarea fields? If disabled, rich text editor may still be enabled using toggle or popup window."
msgstr ""
-#: fckeditor.module:648;1049
+#: fckeditor.module:862;1426
msgid "Show disable/enable rich text editor toggle"
msgstr ""
-#: fckeditor.module:650;658;707;964;1051;1059;1108;1246;1253
+#: fckeditor.module:864;872;921;1331;1428;1436;1485;1623;1630
msgid "true"
msgstr ""
-#: fckeditor.module:650;658;707;964;1051;1059;1108;1246;1253
+#: fckeditor.module:864;872;921;1331;1428;1436;1485;1623;1630
msgid "false"
msgstr ""
-#: fckeditor.module:651
+#: fckeditor.module:865
msgid "Whether or not to show the disable/enable rich text editor toggle below the textarea. Works only if FCKeditor is not running a popup window (see below)."
msgstr ""
-#: fckeditor.module:656;1057
+#: fckeditor.module:870;1434
msgid "Use FCKeditor in a popup window"
msgstr ""
-#: fckeditor.module:659;1060
+#: fckeditor.module:873;1437
msgid "If this option is enabled a link to a popup window will be used instead of a textarea replace."
msgstr ""
-#: fckeditor.module:664;1065
+#: fckeditor.module:878;1442
msgid "Skin"
msgstr ""
-#: fckeditor.module:667
+#: fckeditor.module:881
msgid "Choose a FCKeditor skin."
msgstr ""
-#: fckeditor.module:672;1073
+#: fckeditor.module:886;1450
msgid "Toolbar"
msgstr ""
-#: fckeditor.module:675
+#: fckeditor.module:889
msgid "Choose a FCKeditor toolbar set."
msgstr ""
-#: fckeditor.module:680;1081
+#: fckeditor.module:894;1458
msgid "Start the toolbar expanded"
msgstr ""
-#: fckeditor.module:683;1084
+#: fckeditor.module:897;1461
msgid "The toolbar start expanded or collapsed."
msgstr ""
-#: fckeditor.module:688;1089
+#: fckeditor.module:902;1466
msgid "Width"
msgstr ""
-#: fckeditor.module:690;1091
+#: fckeditor.module:904;1468
msgid "Width in pixels or percent. Ex: 400 or 100%"
msgstr ""
-#: fckeditor.module:697;1098
+#: fckeditor.module:911;1475
msgid "Language"
msgstr ""
-#: fckeditor.module:700;1101
+#: fckeditor.module:914;1478
msgid "The language for the FCKeditor interface."
msgstr ""
-#: fckeditor.module:705;1106
+#: fckeditor.module:919;1483
msgid "Auto-detect language"
msgstr ""
-#: fckeditor.module:708;1109
+#: fckeditor.module:922;1486
msgid "Use auto detect user language feature."
msgstr ""
-#: fckeditor.module:919
-msgid "You must <a href=\"!access-control-url\">assign</a> at least one role with the 'access fckeditor' permission before creating a profile."
+#: fckeditor.module:1153;1283
+msgid "administer"
msgstr ""
-#: fckeditor.module:922
-msgid "You will not be allowed to create a new profile since all user roles have already been assigned profiles. Either remove an existing fckeditor profile from at least one role or assign another role the 'access fckeditor' permission."
+#: fckeditor.module:1153;1283;0
+msgid "fckeditor"
msgstr ""
-#: fckeditor.module:925
-msgid "Not all user roles are shown since they already have fckeditor profiles. You must first unassign profiles in order to add them to a new one."
+#: fckeditor.module:1153
+msgid "Add new FCKeditor Global Profile"
msgstr ""
-#: fckeditor.module:936
-msgid "Basic setup"
+#: fckeditor.module:1159
+msgid "Global profile already exist. Only one global profile is allowed."
msgstr ""
-#: fckeditor.module:943
-msgid "Profile name"
+#: fckeditor.module:1172
+msgid "Main setup"
msgstr ""
-#: fckeditor.module:947
-msgid "Enter a name for this profile. This name is only visible within the fckeditor administration page."
+#: fckeditor.module:1184
+msgid "Role precedence"
msgstr ""
-#: fckeditor.module:953
-msgid "Roles allowed to use this profile"
+#: fckeditor.module:1186
+msgid "A user having <strong>multiple roles</strong> gets the permissions of the highest one. Sort role IDs according to their <strong>precedence from higher to lower</strong> by putting > in between.<br />"
msgstr ""
-#: fckeditor.module:956
-msgid "Check at least one role. Only roles with '!access1' permission will be shown here."
+#: fckeditor.module:1189
+msgid "Here is the id-name pairs of roles having access to FCKeditor:"
msgstr ""
-#: fckeditor.module:962
-msgid "Allow users to customize FCKeditor appearance"
+#: fckeditor.module:1192
+msgid "You haven't assigned the <code>!access1</code> !permissions yet."
msgstr ""
-#: fckeditor.module:965
-msgid "If allowed, users will be able to override <code>Editor appearance</code> by visiting their profile page."
+#: fckeditor.module:1192
+msgid "permissions"
msgstr ""
-#: fckeditor.module:970
+#: fckeditor.module:1197;1337
msgid "Visibility settings"
msgstr ""
-#: fckeditor.module:977
-msgid "Minimum rows"
+#: fckeditor.module:1204;1351
+msgid "Use inclusion or exclusion mode"
msgstr ""
-#: fckeditor.module:979
-msgid "FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature."
+#: fckeditor.module:1206;1353
+msgid "exclude"
msgstr ""
-#: fckeditor.module:984
-msgid "Use inclusion or exclusion mode"
+#: fckeditor.module:1206;1353
+msgid "include"
msgstr ""
-#: fckeditor.module:987
-msgid "Exclude fields, will disable the editor on all selected fields"
+#: fckeditor.module:1207;1354
+msgid "Choose the way of disabling/enabling FCKeditor on selected fields/paths (see below). Use exclude to disable FCKeditor on selected fields/paths. Use include if you want to load FCKeditor only on selected paths/fields."
msgstr ""
-#: fckeditor.module:988
-msgid "Include fields, will only load the editor for the selected fields"
+#: fckeditor.module:1217;1364
+msgid "Fields to exclude/include"
msgstr ""
-#: fckeditor.module:989
-msgid "Exclude paths, will disable the editor for all textareas at the configured paths"
+#: fckeditor.module:1223;1370
+msgid "Enter names (HTML ID's) of fields that may or may not have an FCKeditor, depending on the chosen option for the inclusion/exclusion mode.<br />You may separate the different entries by commas, spaces or newlines."
msgstr ""
-#: fckeditor.module:990
-msgid "Include paths, will load the editor for all large enough textareas at the configured paths."
+#: fckeditor.module:1233;1380
+msgid "Paths to exclude/include"
msgstr ""
-#: fckeditor.module:991
-msgid "Choose what to do with the following values."
+#: fckeditor.module:1239;1386
+msgid "Enter drupal paths here, depending on the chosen option for the inclusion/exclusion mode.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. <br />You may also use * as a wildcard character (for example <code>comment/*</code>)."
msgstr ""
-#: fckeditor.module:1001
-msgid "Selected fields or paths"
+#: fckeditor.module:1244;1391
+msgid "Force simplified toolbar on the following fields"
msgstr ""
-#: fckeditor.module:1005
-msgid "Enter fieldnames or drupal paths here, depending on the chosen option for the inclusion mode.<br />Names (HTML ID's) of fields that may or may not have an FCKeditor.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."
+#: fckeditor.module:1248;1396
+msgid "Enter names (HTML ID's) of fields that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />You may separate the different entries by commas, spaces or newlines."
msgstr ""
-#: fckeditor.module:1010
-msgid "Force simplified toolbar - choose inclusion mode"
+#: fckeditor.module:1253;1401
+msgid "Force simplified toolbar on the following paths"
msgstr ""
-#: fckeditor.module:1013
-msgid "Include fields, will only load the simplified toolbar for the selected fields"
+#: fckeditor.module:1257;1406
+msgid "Enter drupal paths that should have the simplified toolbar.<br />If you don't want to use this feature, simply leave this field empty.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines.<br />You may also use * as a wildcard character (for example <code>comment/*</code>)."
msgstr ""
-#: fckeditor.module:1014
-msgid "Include paths, will load the simplified toolbar at the configured paths."
+#: fckeditor.module:1283
+msgid "Add new FCKeditor profile"
msgstr ""
-#: fckeditor.module:1015
-msgid "Choose what to do with the following values.<br/>FCKeditor will force the <code>!simple</code> toolbar on the selected fields.<br/>Useful for smaller textareas where we usually don't use very complicated HTML code, like in signatures."
+#: fckeditor.module:1292
+msgid "Not all user roles are shown since they already have fckeditor profiles. You must first unassign profiles in order to add them to a new one."
msgstr ""
-#: fckeditor.module:1025
-msgid "Selected fields or paths where simplified toolbar should appear"
+#: fckeditor.module:1303
+msgid "Basic setup"
msgstr ""
-#: fckeditor.module:1029
-msgid "If you don't want to use this feature, simply leave this field empty.<br />Enter fieldnames or drupal paths here, depending on the chosen option.<br />Names (HTML ID's) of fields that should have a simplified toolbar.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."
+#: fckeditor.module:1310
+msgid "Profile name"
+msgstr ""
+
+#: fckeditor.module:1314
+msgid "Enter a name for this profile. This name is only visible within the fckeditor administration page."
msgstr ""
-#: fckeditor.module:1034
+#: fckeditor.module:1320
+msgid "Roles allowed to use this profile"
+msgstr ""
+
+#: fckeditor.module:1323
+msgid "Only roles with '!access1' permission will be shown here. If no role is available, make sure that you have assigned the '!access1' !permission."
+msgstr ""
+
+#: fckeditor.module:1329
+msgid "Allow users to customize FCKeditor appearance"
+msgstr ""
+
+#: fckeditor.module:1332
+msgid "If allowed, users will be able to override <code>Editor appearance</code> by visiting their profile page."
+msgstr ""
+
+#: fckeditor.module:1344
+msgid "Minimum rows"
+msgstr ""
+
+#: fckeditor.module:1346
+msgid "FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature."
+msgstr ""
+
+#: fckeditor.module:1411
msgid "Editor appearance"
msgstr ""
-#: fckeditor.module:1044
+#: fckeditor.module:1421
msgid "Default editor state. If disabled, rich text editor may still be enabled using toggle or popup window."
msgstr ""
-#: fckeditor.module:1052
+#: fckeditor.module:1429
msgid "Whether or not to show the disable/enable rich text editor toggle below the textarea. Works only if FCKeditor is not running in a popup window (see below)."
msgstr ""
-#: fckeditor.module:1068
+#: fckeditor.module:1445
msgid "Choose a default skin."
msgstr ""
-#: fckeditor.module:1076
+#: fckeditor.module:1453
msgid "Choose a default toolbar set. To define new toolbar, edit <code>fckeditor.config.js</code> located in !module_path."
msgstr ""
-#: fckeditor.module:1124
+#: fckeditor.module:1501
msgid "Cleanup and output"
msgstr ""
-#: fckeditor.module:1131
+#: fckeditor.module:1508
msgid "Enter mode"
msgstr ""
-#: fckeditor.module:1134
+#: fckeditor.module:1511
msgid "Set which tag FCKeditor should use when [Enter] key is pressed."
msgstr ""
-#: fckeditor.module:1139
+#: fckeditor.module:1516
msgid "Shift + Enter mode"
msgstr ""
-#: fckeditor.module:1142
+#: fckeditor.module:1519
msgid "Set which tag FCKeditor should use when [Shift] + [Enter] is pressed."
msgstr ""
-#: fckeditor.module:1147
+#: fckeditor.module:1524
msgid "Font formats"
msgstr ""
-#: fckeditor.module:1151
+#: fckeditor.module:1528
msgid "Semicolon separated list of HTML font formats. Allowed values are: p;div;pre;address;h1;h2;h3;h4;h5;h6"
msgstr ""
-#: fckeditor.module:1156
+#: fckeditor.module:1533
msgid "Apply source formatting"
msgstr ""
-#: fckeditor.module:1159
+#: fckeditor.module:1536
msgid "When set to \"true\" the editor will format the XHTML when switching from WYSIWYG view to Source view, by inserting line breaks on some tags endings and indenting paragraphs, tables and lists."
msgstr ""
-#: fckeditor.module:1164
+#: fckeditor.module:1541
msgid "Format output"
msgstr ""
-#: fckeditor.module:1167
+#: fckeditor.module:1544
msgid "When set to \"true\" the editor will format the XHTML output by inserting line breaks on some tags endings and indenting paragraphs, tables and lists."
msgstr ""
-#: fckeditor.module:1182
+#: fckeditor.module:1559
msgid "CSS"
msgstr ""
-#: fckeditor.module:1189
+#: fckeditor.module:1566
msgid "Editor CSS"
msgstr ""
-#: fckeditor.module:1191
+#: fckeditor.module:1568
msgid "use theme css"
msgstr ""
-#: fckeditor.module:1191
+#: fckeditor.module:1568
msgid "define css"
msgstr ""
-#: fckeditor.module:1191
+#: fckeditor.module:1568;1585
msgid "FCKeditor default"
msgstr ""
-#: fckeditor.module:1192
+#: fckeditor.module:1569
msgid "Defines the CSS to be used in the editor area.<br />use theme css - load style.css from current site theme.<br/>define css - enter path for css file below.<br />FCKeditor default - uses default CSS from editor."
msgstr ""
-#: fckeditor.module:1197
+#: fckeditor.module:1574
msgid "CSS path"
msgstr ""
-#: fckeditor.module:1201
-msgid "Enter path to CSS file (<em>example: \"css/editor.css\"</em>) or a list of css files seperated by a comma (<em>example: /themes/garland/style.css,http://example.com/style.css</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme)<br />Be sure to select \"define css\" above."
+#: fckeditor.module:1578
+msgid "Enter path to CSS file (<em>example: css/editor.css</em>) or a list of css files seperated by a comma (<em>example: /themes/garland/style.css,http://example.com/style.css</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme)<br />Be sure to select \"define css\" above."
msgstr ""
-#: fckeditor.module:1206
-msgid "CSS classes"
+#: fckeditor.module:1583
+msgid "Predefined styles"
msgstr ""
-#: fckeditor.module:1207
-msgid "Requires manual configuration."
+#: fckeditor.module:1585
+msgid "use theme fckstyles.xml"
msgstr ""
-#: fckeditor.module:1208
-msgid "Style dropdown list loads styles defined in <code>!fckstyles.xml</code>. Copy this file inside your theme directory (<code>!theme</code>) and adjust it to your needs. If you modify the original file, changes will be applied to all themes, however it may get overwritten if you upgrade FCKeditor."
+#: fckeditor.module:1585
+msgid "define path to fckstyles.xml"
msgstr ""
-#: fckeditor.module:1215;1224
-msgid "File browser settings"
+#: fckeditor.module:1586
+msgid "Define the location of <code>fckstyles.xml</code> file. It is used by the &quot;Style&quot; dropdown list available in the Default toolbar.<br />Copy !fckstyles.xml inside your theme directory (<code>!theme</code>) and adjust it to your needs."
msgstr ""
-#: fckeditor.module:1218
+#: fckeditor.module:1591
+msgid "Predefined styles path"
+msgstr ""
+
+#: fckeditor.module:1595
+msgid "Enter path to XML file with predefined styles (<em>example: /fckstyles.xml</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme), %m (path to FCKeditor module: !module)<br />Be sure to select \"define path to fckstyles.xml\" above."
+msgstr ""
+
+#: fckeditor.module:1605
msgid "The file browser settings are not diplayed because you have configured IMCE to handle file browsing."
msgstr ""
-#: fckeditor.module:1227
+#: fckeditor.module:1614
msgid "Set file browser settings. If you enable file uploads and disable basic and advanced file management, you will need to manage your images and other files with the core upload module or a contrib module like !imce. Please note that these options require manual configuration, check !readme for more information.<br />"
msgstr ""
-#: fckeditor.module:1247
+#: fckeditor.module:1624
msgid "Allow basic file management"
msgstr ""
-#: fckeditor.module:1249
-msgid "Allow quick uploads. All files will be placed in the directory designated in the configuration file."
+#: fckeditor.module:1626
+msgid "Allow quick uploads."
msgstr ""
-#: fckeditor.module:1254
+#: fckeditor.module:1631
msgid "Allow advanced file management"
msgstr ""
-#: fckeditor.module:1256
-msgid "Allow file management in the advanced file manager. All files will be placed in subdirectories of the default drupal upload directory."
+#: fckeditor.module:1633
+msgid "Allow file management in the advanced file manager."
+msgstr ""
+
+#: fckeditor.module:1641
+msgid "Path to uploaded files"
+msgstr ""
+
+#: fckeditor.module:1645
+msgid "Path to uploaded files relative to the document root.<br />Available wildcard characters:<br/><strong>%b</strong> - base URL path of the Drupal installation (!base).<br/><strong>%f</strong> - Drupal file system path where the files are stored (!files).<br /><strong>%u</strong> - User ID.<br />Current path: !path"
+msgstr ""
+
+#: fckeditor.module:1649
+msgid "Absolute path to uploaded files"
+msgstr ""
+
+#: fckeditor.module:1653
+msgid "The path to the local directory (in the server) which points to the path defined above. If empty, FCKeditor will try to discover the right path.<br />Available wildcard characters:<br/><strong>%d</strong> - server path to document root (!root).<br /><strong>%b</strong> - base URL path of the Drupal installation (!base).<br/><strong>%f</strong> - Drupal file system path where the files are stored (!files).<br /><strong>%u</strong> - User ID.<br />Current path: !path"
+msgstr ""
+
+#: fckeditor.module:1659
+msgid "Advanced options"
+msgstr ""
+
+#: fckeditor.module:1665
+msgid "Custom javascript configuration"
+msgstr ""
+
+#: fckeditor.module:1669
+msgid "Warning: to change FCKeditor configuration globally, you should modify the config file: <code>!fckeditor_config</code>.<br/>Sometimes it is required to change the FCKeditor configuration for selected profile. Use this box to define settings that are uniqe for this profile.<br/>Available options are listed in the !docs.<br/>Warning: if you make something wrong here, FCKeditor may fail to load.<br/>For example to disable some advanced tabs in dialog windows in FCKeditor, add the following: !example"
+msgstr ""
+
+#: fckeditor.module:1672
+msgid "FCKeditor documentation"
+msgstr ""
+
+#: fckeditor.module:133
+msgid "administer fckeditor"
+msgstr ""
+
+#: fckeditor.module:133
+msgid "allow fckeditor file uploads"
+msgstr ""
+
+#: fckeditor.install:129
+msgid "Stores FCKeditor profile settings"
+msgstr ""
+
+#: fckeditor.install:136
+msgid "Name of the FCKeditor profile"
+msgstr ""
+
+#: fckeditor.install:140
+msgid "Profile settings"
+msgstr ""
+
+#: fckeditor.install:146
+msgid "Stores FCKeditor profile assignments"
+msgstr ""
+
+#: fckeditor.install:153
+msgid "Name of the FCKeditor role"
+msgstr ""
+
+#: fckeditor.install:159
+msgid "Drupal role id"
msgstr ""
#: fckeditor.info:0
msgid "Enables the usage of FCKeditor (WYSIWYG) instead of plain text fields."
msgstr ""
+#: fckeditor.utils.js:0;0;0;0;0
+msgid "Join summary"
+msgstr ""
+
+#: fckeditor.utils.js:0;0
+msgid "Split summary at cursor"
+msgstr ""
+
diff --git a/po/it.po b/po/it.po
deleted file mode 100644
index ddce231..0000000
--- a/po/it.po
+++ /dev/null
@@ -1,282 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: FCKEditor\n"
-"POT-Creation-Date: \n"
-"PO-Revision-Date: 2007-09-17 17:50+0100\n"
-"Last-Translator: Michele Cillo <m.cillo@itsspring.com>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Poedit-Language: Italian\n"
-"X-Poedit-Country: ITALY\n"
-
-#: fckeditor.module:21
-#: ;122
-msgid "Enables the usage of FCKeditor (WYSIWYG editor) instead of plain text fields."
-msgstr "Abilita l'utilizzo di FCKeditor (editor WYSIWYG) in luogo dei campi di testo semplice."
-
-#: fckeditor.module:24
-#: ;32
-msgid ""
-"<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p>\n"
-"<p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>"
-msgstr ""
-"<p>Il modulo FCKeditor permette a Drupal di sostituire i campi di tipo aree di testo con un editor di testo formattato o editor <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym>. Questo editor porta molte delle potenti funzionalità degli editor per PC come Word sul web. Esso è relativamente leggero e non richiede alcuna installazione sul computer che lo utilizza.</p>\n"
-"<p>Maggiori informazioni si possono reperire a !fckeditorlink. Una sintetica guida utente può essere reperita a !userguidelink.</p>"
-
-#: fckeditor.module:27
-#: ;35;43;49;137
-msgid "FCKeditor homepage"
-msgstr "Pagina home di FCKeditor"
-
-#: fckeditor.module:28
-#: ;36
-msgid "FCKeditor userguide"
-msgstr "Guida utente di FCKeditor"
-
-#: fckeditor.module:38
-msgid ""
-"<h3>Installation</h3>\n"
-"<p>Go to the !fckeditorlink and download the latest version. Then\n"
-"uncompress the contents of the \"fckeditor\" directory of the download file to\n"
-"%fckeditordir.</p>"
-msgstr ""
-"<h3>Installazione</h3>\n"
-"<p>Vai a !fckeditorlink e scarica l'ultima versione. Poi decomprimi il contenuto della cartella \"fckeditor\" directory del file scaricato in \n"
-"%fckeditordir.</p>"
-
-#: fckeditor.module:46
-msgid ""
-"<h3>Installation troubleshooting</h3>\n"
-"<p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>"
-msgstr ""
-"<h3>Problemi di installazione</h3>\n"
-"<p>Se il tuo FCKeditor non viene visualizzato dovresti controllare se tutti i file sono stati estratti correttamente. La cartella %fckeditordir dovrebbe contenere i seguenti file <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> e una cartella chiamata <code>editor</code>.</p>"
-
-#: fckeditor.module:52
-msgid ""
-"<h3>Configuration</h3>\n"
-"<ol>\n"
-"<li>Modify the fckeditor.config.js file to custom your needs (optional).<br />\n"
-"You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li>\n"
-"<li>Enable the module as usual from Drupal's admin pages.</li>\n"
-"<li>Under Administer > Settings > FCKeditor, configure the fckeditor settings. You can choose which textareas will be replaced by FCKeditor, choose the toolbars and configure some more advanced settings.</li>\n"
-"<li>Grant permissions for use of FCKeditor in Administer > User Management > Access Control (You only need to select either basic or advanced editor for each role that is allowed to use the FCKeditor)</li>\n"
-"<li>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: <code>!filter</code>. Users that need access to tables might be better of using Full HTML.</li>\n"
-"</ol>"
-msgstr ""
-"<h3>Configurazione</h3>\n"
-"<ol>\n"
-"<li>Modifica il file fckeditor.config.js per personalizzare le tue necessità (opzionale).<br />\n"
-"Puoi copiare le linee di configurazione che ti servono dalle impostazioni della configurazione predefinita di FCKeditor (modules/fckeditor/fckeditor/fckconfig.js), le linee in in fckeditor.config.js sovrascriveranno la maggior parte delle impostazioni.</li>\n"
-"<li>Abilita il modulo come al solito dalle pagine di amministrazione di Drupal.</li>\n"
-"<li>Sotto Amministrar > Configurazione del sito > FCKeditor, configura le impostazioni per fckeditor.Puoi scegliere quali aree di testo saranno sostituite con FCKeditor, scegliere le barre degli strumenti e configurare alcune impostazioni avanzate.</li>\n"
-"<li>Garantisci i permessi di utilizzo di FCKeditor in Amministra > Utenti > Controllo accessi (devi semplicemente selezionare l'editor di base o avanzato per ciascun ruolo cui è permesso di utilizzare FCKeditor)</li>\n"
-"<li>Per far funzionare la Modifica del Testo Formattato c'è bisogno di configurare anche i tuoi !filterlink per gli utenti che possono accedere alla Modifica del Testo Formattato. O garantisci a quegli utenti l'accesso a Full HTML o utilizza il seguente: <code>!filter</code>. Per gli utenti che hanno bisogno di utilizzare delle tabelle sarebbe meglio l'utilizzo di Full HTML.</li>\n"
-"</ol>"
-
-#: fckeditor.module:63
-msgid "filters"
-msgstr "filtri"
-
-#: fckeditor.module:65
-msgid ""
-"<h3>Uploading images and files</h3>\n"
-"<p>There are three ways of uploading files: By using the built-in file browser, by using a module like !imce or using the core upload module.</p>"
-msgstr ""
-"<h3>Caricamento di immagini e file</h3>\n"
-"<p>Ci sono tre modi di caricare i file: attraverso il file browser integrato, attraverso un modulo come !imce or utilizzando il modulo upload del core.</p>"
-
-#: fckeditor.module:68
-#: ;271
-msgid "IMCE"
-msgstr "IMCE"
-
-#: fckeditor.module:71
-msgid ""
-"<h3>Security</h3>\n"
-"<p>Note that enabling file uploads is <strong>a security risk</strong>. That's why there is a\n"
-"separate permission in Administer > User Management > Access Control for enabling the file\n"
-"browser to certain groups.</p>"
-msgstr ""
-"<h3>Sicurezza</h3>\n"
-"<p>Nota che l'abilitazione del caricamento dei file è <strong>un rischio per la sicurezza</strong>. Questo spiega perchè vi un permesso separato in Amministra > Utenti > Controllo accessi per l'abilitazione del caricamento dei file per specifici gruppi.</p>"
-
-#: fckeditor.module:118
-#: fckeditor.info:0
-msgid "FCKeditor"
-msgstr "FCKeditor"
-
-#: fckeditor.module:133
-msgid "checking for %filename"
-msgstr "Controllo per %filename"
-
-#: fckeditor.module:135
-msgid "The FCKeditor component is not installed correctly. Please go to the !fckeditorlink to download the latest version. After that you must extract the files to %modulepath and make sure that the directory %modulesubdir and the file %modulefile exist. Refer to the !readme for more information."
-msgstr "Il componente FCKeditor non è installato correttamente. Per favore vai a !fckeditorlink per scaricare la versione più recente. Fatto ciò estrai i file in %modulepath ed assicurati che la cartella %modulesubdir e il file %modulefile esistono. Fai riferimento al !readme per maggiori informazioni."
-
-#: fckeditor.module:158
-msgid "Basic settings"
-msgstr "Impostazioni di base"
-
-#: fckeditor.module:164
-msgid "Use FCKeditor in a popup window"
-msgstr "Utilizza FCKeditor in una finestra di popup"
-
-#: fckeditor.module:166
-msgid "If this option is selected a link to a popup window will be used instead of a textarea replace."
-msgstr "Se questa opzione è selezionata sarà mostrato un collegamento ad una finestra di popup con l'editor in luogo della sostituzione delle aree di testo."
-
-#: fckeditor.module:170
-msgid "Default Toolbar"
-msgstr "Barra degli strumenti predefinita"
-
-#: fckeditor.module:173
-msgid "Choose a default toolbar set for users with &quot;use default fckeditor&quot; permission.."
-msgstr "Scegli una barra degli strumenti predefinita per gli utenti con il permesso &quot;utilizza fckeditor predefinito&quot;."
-
-#: fckeditor.module:177
-msgid "Advanced Toolbar"
-msgstr "Barra degli strumenti avanzata"
-
-#: fckeditor.module:180
-msgid "Choose a toolbar set for users with &quot;use advanced fckeditor&quot; permission."
-msgstr "Scegli una barra degli strumenti predefinita per gli utenti con il permesso &quot;utilizza fckeditor avanzato&quot;."
-
-#: fckeditor.module:186
-msgid "Visibility settings"
-msgstr "Impostazioni di visibilità"
-
-#: fckeditor.module:192
-msgid "Minimum rows"
-msgstr "Numero minimo di righe"
-
-#: fckeditor.module:194
-msgid "FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature."
-msgstr "FCKeditor sarà avviato se l'area di testo ha più righe di quante specificate qui. Imposta '1' se non vuoi utilizzare questa funzionalità."
-
-#: fckeditor.module:198
-msgid "Use inclusion or exclusion mode"
-msgstr "Usa modalità di inclusione o esclusione"
-
-#: fckeditor.module:201
-msgid "Exclude fields, will disable the editor on all selected fields"
-msgstr "L'esclusione dei campi disabiliterà l'utilizzo dell'editor sui campi selezionati."
-
-#: fckeditor.module:202
-msgid "Include fields, will only load the editor for the selected fields"
-msgstr "L'inclusione dei campi caricherà l'editor solo sui campi selezionati."
-
-#: fckeditor.module:203
-msgid "Exclude paths, will disable the editor for all textareas at the configured paths"
-msgstr "L'esclusione dei percorsi disabiliterà l'editor per tutte le aree di testo dei percorsi configurati."
-
-#: fckeditor.module:204
-msgid "Include paths, will load the editor for all large enough textareas at the configured paths."
-msgstr "L'inclusione dei percorsi caricherà l'editor per le tutte le aree di testo abbastanza larghe che si trovano ai percorsi configurati."
-
-#: fckeditor.module:205
-msgid "Choose what to do with the following values."
-msgstr "Scegli cosa fare per i valori seguenti."
-
-#: fckeditor.module:214
-msgid "Selected fields or paths"
-msgstr "Seleziona dei campi o dei percorsi"
-
-#: fckeditor.module:218
-msgid ""
-"Enter fieldnames or drupal paths here, depending on the chosen option for the inclusion mode.<br />\n"
-"Names (HTML ID's) of fields that may or may not have an FCKeditor.<br />\n"
-"Paths may be used the same way as in the drupal blocks configuration.<br />\n"
-"You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character.<br />\n"
-"You can not mix paths and ID's."
-msgstr ""
-"Specifica qui i nomi dei campi o i percorsi drupal, dipendentemente dalla selezione della modalità di inclusione.<br />\n"
-"I nomi (gli ID HTML) dei campi che possono o non possono utilizzare FCKEditor.<br />\n"
-"I percorsi possono essere utilizzati allo stesso modo della configurazione dei blocchi di drupal.<br />\n"
-"Puoi separare i differenti elementi con la virgola, lo spazio o con a capo. Puoi anche utilizzare * come carattere jolly.<br />\n"
-"Non puoi mischiare ID e percorsi."
-
-#: fckeditor.module:228
-msgid "Advanced settings"
-msgstr "Impostazioni avanzate"
-
-#: fckeditor.module:234
-msgid "Start the toolbar expanded"
-msgstr "Avvia la barra degli strumenti espansa"
-
-#: fckeditor.module:236
-msgid "The toolbar start expanded or collapsed."
-msgstr "La barra degli strumenti viene avviata espansa o collassata."
-
-#: fckeditor.module:240
-msgid "Width"
-msgstr "Larghezza"
-
-#: fckeditor.module:242
-msgid "Width in pixels or percent. Ex: 400 or 100%"
-msgstr "Larcghezza in pixel o percentuale. Es: 400 o 100%"
-
-#: fckeditor.module:246
-msgid "Custom stylesheet"
-msgstr "Foglio di stile personalizzato"
-
-#: fckeditor.module:248
-msgid "If you enter a path to a stylesheet here it will be used in the FCKeditor area while editing. Be advised that using the default theme stylesheet will not give the correct results."
-msgstr "Se imposti qui un percorso di un foglio di stile, questo sarà utilizzato durante la modifica all'interno di FCKeditor. Attenzione che l'utilizzo del foglio di stile predefinito del tema non darà il risultato corretto."
-
-#: fckeditor.module:256
-#: ;266
-msgid "File browser settings"
-msgstr "Impostazioni del File browser"
-
-#: fckeditor.module:259
-msgid "The file browser settings are not diplayed because you have configured IMCE to handle file browsing."
-msgstr "Le impostazioni sul browser dei file non sono mostrate poichè hai configurato IMCE per la gestione del trasferimento dei file."
-
-#: fckeditor.module:269
-msgid "Set file browser settings. If you choose none of these you will need to manage your images and other files with the core upload module or a contrib module like !imce. Please note that these options require manual configuration, check !readme for more information.<br />Also remember to change the !permissions."
-msgstr "Specifica le impostazioni del browser di file. Se scegli nessuno di queste dovrai gestire le tue immagini e gli altri file con il modulo upload del core o con un modulo addizionale come !imce. Per favore nota che queste opzioni richiedono una configurazione manuale, verifica il !readme per maggiori informazioni.<br/>Ricorda anche di cambiare i !permissions."
-
-#: fckeditor.module:280
-msgid "Allow basic file management"
-msgstr "Permette una gestione dei file di base"
-
-#: fckeditor.module:282
-msgid "Allow quick uploads. All files will be placed in the directory designated in the configuration file."
-msgstr "Permetti caricamenti veloci. Tutti i file saranno posti nella cartella specificata nel file di configurazione."
-
-#: fckeditor.module:286
-msgid "Allow advanced file management"
-msgstr "Permette una gestione dei file avanzata"
-
-#: fckeditor.module:288
-msgid "Allow file management in the advanced file manager. All files will be placed in subdirectories of the default drupal upload directory."
-msgstr "Permetti la gestione dei file tramite il gestore avanzato dei file. Tutti i file saranno posti in sottocartelle della cartella di caricamento predefinita di drupal."
-
-#: fckeditor.module:438
-msgid "Open rich editor"
-msgstr "Apri editor di testo formattato"
-
-#: fckeditor.module:91
-msgid "use default fckeditor"
-msgstr "utilizza fckeditor predefinito"
-
-#: fckeditor.module:91
-msgid "use advanced fckeditor"
-msgstr "utilizza fckeditor avanzato"
-
-#: fckeditor.module:91
-msgid "allow fckeditor file uploads"
-msgstr "permette il caricamento dei file tramite fckeditor"
-
-#: fckeditor.module:0
-msgid "fckeditor"
-msgstr "fckeditor"
-
-#: fckeditor.info:0
-msgid "Enables the usage of FCKeditor (WYSIWYG) instead of plain text fields."
-msgstr "Abilita l'utilizzo di FCKeditor (WYSIWYG) in luogo dei campi testo semplice."
-
diff --git a/po/nl.po b/po/nl.po
deleted file mode 100644
index 78244c7..0000000
--- a/po/nl.po
+++ /dev/null
@@ -1,202 +0,0 @@
-# $Id$
-#
-# LANGUAGE translation of Drupal (fckeditor.module)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-# fckeditor.module,v 1.19.2.1 2006/11/21 09:18:15 ontwerpwerk
-# fckeditor.info,v 1.1 2006/11/13 19:21:39 ontwerpwerk
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2007-01-07 02:17+0100\n"
-"PO-Revision-Date: 2007-01-07 02:39+0100\n"
-"Last-Translator: Frank Van Geirt <fvangeirt@gmail.com>\n"
-"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: fckeditor.module:41;102
-msgid ""
-"Enables the usage of FCKeditor (WYSIWYG editor) instead of plain"
-"text fields."
-msgstr ""
-"Laat het gebruik van FCKeditor (WYSIWYG editor) toe in plaats van"
-"de eenvoudige tekstvelden."
-
-#: fckeditor.module:44;49
-msgid ""
-"<p>The FCKeditor module allows Drupal to replace textarea fields with a"
-"rich text or <acronym title=\"What You See Is What You"
-"Get\">WYSIWYG</acronym> 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.</p>\n"
-"<p>More information is located at the !fckeditorlink. A small user guide"
-"is located at !userguidelink.</p>"
-msgstr ""
-"<p>De FCKeditor module laat toe om in Drupal de tekstvelden te vervangen"
-"door rich text of een <acronym title=\"What You See Is What You"
-"Get\">WYSIWYG</acronym> editor. Deze editor brengt veel van de functies van"
-"bekende desktop editors zoals Word op het web. Het is relatief licht en"
-"vraagt geen enkele installatie op de lokale computer.</p>\n"
-"<p>Meer informatie is te vinden op !fckeditorlink. Een kleine handleiding"
-"i te vinden op !userguidelink.</p>"
-
-#: fckeditor.module:45;50
-msgid "FCKeditor homepage"
-msgstr "FCKeditor home pagina"
-
-#: fckeditor.module:45;50
-msgid "FCKeditor userguide"
-msgstr "FCKeditor handleiding"
-
-#: fckeditor.module:51
-msgid ""
-"<h3>Configuration</h3>\n"
-"<p>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: <code>!filter</code>."
-"Users that need access to tables might be better of using Full HTML.</p>"
-msgstr ""
-"<h3>Configuratie</h3>\n"
-"<p>Om gebruik te kunnen maken van de Rich Text Editing moet je eveneens"
-"de !filterlink voor uw gebruikers configureren zodat ze de vereiste toegang"
-"krijgen. Geef deze gebruikers ofwel de Full HTML toegang of gebruik de"
-"volgende: <code>!filter</code>. Gebruikers die toegang tot tabellen nodig"
-"hebben, gebruiken beter Full HTML.</p>"
-
-#: fckeditor.module:52
-msgid "filters"
-msgstr "filters"
-
-#: fckeditor.module:53
-msgid ""
-"<h3>Security</h3>\n"
-"<p>Note that enabling file uploads is a security risk, please take care"
-"about to who and when you will grant access.</p>"
-msgstr ""
-"<h3>Veiligheid</h3>\n"
-"<p>Weet dat het toelaten van bestanden opladen een gevaar kan zijn. Let"
-"op wie en wanneer je deze toegang geeft.</p>"
-
-#: fckeditor.module:98
-#: fckeditor.info:0
-msgid "FCKeditor"
-msgstr "FCKeditor"
-
-#: fckeditor.module:121
-msgid "Basic settings"
-msgstr "Basis instellingen"
-
-#: fckeditor.module:127
-msgid "Use FCKeditor in a popup window"
-msgstr "Gebruik FCKeditor in een popup venster"
-
-#: fckeditor.module:129
-msgid ""
-"If this option is selected a link to a popup window will be used"
-"instead of a textarea replace."
-msgstr "Indien deze optie geselecteerd wordt, wordt een popup venster gebruikt in plaats van het tekst veld."
-
-#: fckeditor.module:133
-msgid "Default Toolbar"
-msgstr "Standaard knoppenbalk"
-
-#: fckeditor.module:136
-msgid "Choose a default toolbar set."
-msgstr "Kies een standaard knoppenbalk."
-
-#: fckeditor.module:140
-msgid "Advanced Toolbar"
-msgstr "Geavanceerde knoppenbalk."
-
-#: fckeditor.module:143
-msgid "Choose a toolbar set for administrators."
-msgstr "Kies een knoppenbalk voor beheerders."
-
-#: fckeditor.module:149
-msgid "Exclusion settings"
-msgstr "Uitsluiting instellingen"
-
-#: fckeditor.module:155
-msgid "Minimum rows"
-msgstr "Minimum rijen"
-
-#: fckeditor.module:157
-msgid ""
-"Textareas must have a minimum of rows before FCKeditor will be"
-"triggered. Enter '1' if you do not want to use this feature."
-msgstr ""
-"Tekstvelden moeten een minimum aantal rijen hebben vooraleer"
-"FCKeditor wordt geactiveerd. Geef '1' in indien je deze functie niet wenst"
-"te gebruiken."
-
-#: fckeditor.module:166
-msgid "Exclude fields"
-msgstr "Sluit velden uit"
-
-#: fckeditor.module:170
-msgid ""
-"Names (HTML ID's) of fields that may not have an FCKeditor"
-"(separated by commas, spaces or newlines. You may also use * for a"
-"wildcard)"
-msgstr ""
-"Namen (HTML ID's) van velden die geen FCKeditor mogen hebben. De"
-"namen moeten worden gescheiden met komma's, spaties of nieuwe regels. Het"
-"gebruik van * voor jokers is toegelaten."
-
-#: fckeditor.module:176
-msgid "Advanced settings"
-msgstr "Geavanceerde instellingen"
-
-#: fckeditor.module:182
-msgid "Start the toolbar expanded"
-msgstr "Start met de knoppenbalk uitgeschoven"
-
-#: fckeditor.module:184
-msgid "The toolbar start expanded or collapsed."
-msgstr "De knoppenbalk start uitgeschoven of dichtgeklapt."
-
-#: fckeditor.module:188
-msgid "Width"
-msgstr "Breedte"
-
-#: fckeditor.module:190
-msgid "Width in pixels or percent. Ex: 400 or 100%"
-msgstr "Breedte in pixels of percentage. B.v. 400 of 100%"
-
-#: fckeditor.module:268
-msgid "Open rich editor"
-msgstr "Open rich text editor"
-
-#: fckeditor.module:71
-msgid "use default fckeditor"
-msgstr "gebruik standaard dcfeditor"
-
-#: fckeditor.module:71
-msgid "use advanced fckeditor"
-msgstr "gebruik geavanceerde fckeditor"
-
-#: fckeditor.module:71
-msgid "allow fckeditor file uploads"
-msgstr "laat fckeditortoe bestanden opladen"
-
-#: fckeditor.module:0
-msgid "fckeditor"
-msgstr "fckeditor"
-
-#: fckeditor.info:0
-msgid ""
-"Enables the usage of FCKeditor (WYSIWYG) instead of plain text"
-"fields."
-msgstr ""
-"Laat het gebruik van FCKeditor (WYSIWYG editor) toe in plaats van"
-"de eenvoudige tekstvelden."
-
-#: fckeditor.info:0
-msgid "Input helpers"
-msgstr "Invoer hulp"
-
diff --git a/po/pl.po b/po/pl.po
deleted file mode 100644
index 55e3010..0000000
--- a/po/pl.po
+++ /dev/null
@@ -1,553 +0,0 @@
-# $Id$
-#
-# LANGUAGE translation of Drupal (general)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# No version information was available in the source files.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2007-10-30 09:59+0100\n"
-"PO-Revision-Date: 2007-10-30 10:44+0100\n"
-"Last-Translator: Wiktor Walc <w.walc@fckeditor.net>\n"
-"Language-Team: FCKeditor <EMAIL@ADDRESS>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: Plural-Forms: nplurals=2; plural=(n != 1);\\n\n"
-"X-Poedit-Language: Polish\n"
-"X-Poedit-Country: POLAND\n"
-
-#: fckeditor.module:45
-msgid "Enables the usage of FCKeditor (WYSIWYG editor) instead of plain text fields."
-msgstr "Zastąp zwykłe pola tekstowe wizualnym edytorem HTML (WYSIWYG) - FCKeditorem."
-
-#: fckeditor.module:48
-msgid "<p>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 <code>!fckconfig</code> and then customize <code>!fckeditor_config</code> to your needs. This is also the only way to define new toolbar sets. It is advised to not edit <code>fckconfig.js</code> because you may overwrite it accidentally when you update the editor.</p>"
-msgstr "<p>Uwaga: FCKeditor posiada wiele opcji konfiguracyjnych. Najczęściej używane zostały przedstawione poniżej. Jeśli chcesz poznać wszystkie możliwe opcje konfiguracyjne, otwórz <code>!fckconfig</code> i następnie dostosuj w analogiczny sposób do swoich potrzeb plik <code>!fckeditor_config</code>. Jest to również jedyny sposób na zdefiniowanie nowego paska narzędzi (toolbar). Nie jest zalecana edycja pliku <code>fckconfig.js</code>, ponieważ w przyszłości możesz go niechcący nadpisać podczas uaktualnienia FCKEditora.</p>"
-
-#: fckeditor.module:51;59
-msgid "<p>The FCKeditor module allows Drupal to replace textarea fields with a rich text or <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym> 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.</p><p>More information is located at the !fckeditorlink. A small user guide is located at !userguidelink.</p>"
-msgstr "<p>Moduł FCKeditor pozwala na zastąpienie pól tekstowych w Drupalu rozbudowanym edytorem <acronym title=\"What You See Is What You Get\">WYSIWYG</acronym>. Edytor ten udostępnia użytkownikowi mnóstwo możliwości i jest równie prosty w użyciu dla użytkownika jak Word. FCKeditor nie jest przeładowany niepotrzebnymi gadżetami i nie wymaga żadnej dodatkowej instalacji na komputerze klienta.</p><p>Więcej informacji możesz znaleźć tutaj: !fckeditorlink. Krótki przewodnik dla użytkownika można znaleźć tutaj: !userguidelink.</p>"
-
-#: fckeditor.module:53;61;66;71
-msgid "FCKeditor homepage"
-msgstr "Strona główna FCKeditor.net"
-
-#: fckeditor.module:54;62
-msgid "FCKeditor userguide"
-msgstr "Przewodnik po FCKeditorze"
-
-#: fckeditor.module:56
-msgid "<p>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.</p><p>Lastly, only users with the <code>!access1</code> <a href=\"!url\">permission</a> will be able to use FCKeditor.</p>"
-msgstr "<p>Konfiguracja FCKeditora opiera się na podziale na profile. Poszczególny profil przypisywany jest do roli (rangi). W każdym profilu można zdefiniować w jakich konkretnie miejscach i w jaki sposób ma się pojawiać FCKeditor, jaki pasek narzędzi ma być dostępny, wybrać skórkę itd.</p><p>Tylko użytkownicy z <a href=\"!url\">uprawnieniami</a> <code>!access1</code> będą mogli uzywać FCKeditora.</p>"
-
-#: fckeditor.module:56;919;956
-msgid "access fckeditor"
-msgstr "dostęp do FCKeditora"
-
-#: fckeditor.module:64
-msgid "<h3>Installation</h3><p>Go to the !fckeditorlink and download the latest version. Then uncompress the contents of the \"fckeditor\" directory of the downloaded file to %fckeditordir.</p>"
-msgstr "<h3>Instalacja</h3><p>Przejdź do !fckeditorlink i pobierz najnowszą wersję FCKeditora. Następnie wypakuj zawartość pliku, czyli katalog \"fckeditor\" do katalogu %fckeditordir.</p>"
-
-#: fckeditor.module:69
-msgid "<h3>Installation troubleshooting</h3><p>If your FCKeditor does not show you must check if all files are extracted correctly. The directory %fckeditordir should have the following files <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> and a directory named <code>editor</code>.</p>"
-msgstr "<h3>Kłopoty z instalacją</h3><p>Jeśli FCKeditor się nie pojawia, upewnij się, że wszystkie pliki rozpakowane zostały prawidłowo. Katalog %fckeditordir powinien zawierać między innymi następujące pliki: <code>fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml</code> oraz katalog o nazwie <code>editor</code>.</p>"
-
-#: fckeditor.module:74
-msgid "The correct directory structure is as follows: <pre>!structure</pre>"
-msgstr "Poprawna struktura katalogów jest następująca: <pre>!structure</pre>"
-
-#: fckeditor.module:77
-msgid "<h3>Configuration</h3><ol><li>Modify the fckeditor.config.js file to custom your needs (optional).<br />You may copy the needed configuration lines from the default FCKeditor configuration settings (modules/fckeditor/fckeditor/fckconfig.js), the lines in fckeditor.config.js will override most settings.</li><li>Enable the module as usual from Drupal's admin pages.</li><li>Grant permissions for use of FCKeditor in <code>!path2</code></li><li>Under <code>!path1</code>, create 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 </li><li>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: <br/><code>!filter</code>. </li><li>To have a better control over line breaks, you may disable <code>Line break converter</code> in the chosen filter.</li></ol>"
-msgstr "<h3>Konfiguracja</h3><ol><li>Zmodyfikuj plik fckeditor.config.js do swoich potrzeb (opcjonalnie).<br />Możesz skopiować poszczególne linie z domyślnej konfiguracji FCKeditora (modules/fckeditor/fckeditor/fckconfig.js), ustawienia w fckeditor.config.js nadpiszą ustawienia z oryginanego pliku.</li><li>Włącz moduł (tak jak każdy inny moduł) w sekcji administracyjnej Drupala.</li><li>Nadaj uprawnienia użytkowania FCKeditora w <code>!path2</code></li><li>W sekcji <code>!path1</code>, utwórz profile dla FCKeditora. W każdym profilu, możesz szczegółowo ustawić, gdzie pola tekstowe zostaną zastąpione przez FCKeditora, wybrać domyślny pasek narzędzi i skonfigurować wiele innych opcji </li><li>Na potrzeby edytora WYSIWYG, powinieneś również dostosować opcje filtrowania tagów HTML !filterlink. Udostępnij im możliwość edycji pełnego HTML (niezbyt bezpieczne) lub użyj poniższych tagów: <br/><code>!filter</code>. </li><li>Aby mieć lepszą kontrolę nad znakami nowej linii podczas edycji, wyłączenie <code>Konwertera znaków końca linii</code> w wybranym filtrze może okazać się pomocne.</li></ol>"
-
-#: fckeditor.module:79
-msgid "Administer > Settings > FCKeditor"
-msgstr "Zarządzaj › Konfiguracja witryny > FCKeditor"
-
-#: fckeditor.module:80
-msgid "Administer > User Management > Access Control"
-msgstr "Strona główna › Zarządzaj › Zarządzanie użytkownikami"
-
-#: fckeditor.module:85
-msgid "filters"
-msgstr "filtry"
-
-#: fckeditor.module:87
-msgid "<h3>Plugins: Teaser break and Pagebreak</h3><p>By default, FCKeditor module comes with two plugins that can handle teaser break (&lt;!--break--&gt;) and pagebreak (&lt;!--pagebreak--&gt;). You can enable any (or even both) of them.<ol><li>Open <code>!fckeditor.config.js</code> and uncomment these three lines: <pre>!code</pre></li><li>The second step is to add buttons to the toolbar (in the same file). The button names are: <code>DrupalBreak, DrupalPageBreak</code>. For example if you have a toolbar with an array of buttons defined as follows: <pre>!buttons1</pre> simply add those two buttons at the end of array: <pre>!buttons2</pre> (remember about single quotes).</li></ol></p>"
-msgstr "<h3>Wtyczki: Teaser break i Pagebreak</h3><p>Moduł FCKeditor domyślnie posiada dwie wtyczki, które obsługują tagi &lt;!--break--&gt; i &lt;!--pagebreak--&gt;.Możesz włączyć każdą z nich (albo obie jednocześnie).<ol><li>Otwórz <code>!fckeditor.config.js</code> i odkomentuj trzy linie:<pre>!code</pre></li><li>Drugi krok polega na dodaniu dwóch guzików do paska narzędzi (w tym samym pliku).Nazwy guzików to: <code>DrupalBreak, DrupalPageBreak</code>. Przykładowo, mając tablicę guzików zdefiniowaną w następujący sposób: <pre>!buttons1</pre> dodajemy sobie dwa guziki na koniec tablicy: <pre>!buttons2</pre> (pamiętaj o znakach cudzysłowia).</li></ol></p>"
-
-#: fckeditor.module:98
-msgid "<h3>Uploading images and files</h3><p>There are three ways of uploading files: By using the built-in file browser, by using a module like !imce or using the core upload module.</p>"
-msgstr "<h3>Uploadowanie plików i obrazków</h3><p>Są trzy sposoby, w jaki można uplodować plik: używając wbudowanego menadżera plików, używając moduł taki jak !imce lub używając wbudowanego modułu w Drupalu.</p>"
-
-#: fckeditor.module:100;1229
-msgid "IMCE"
-msgstr "IMCE"
-
-#: fckeditor.module:103
-msgid "<h3>Security</h3><p>Note that enabling file uploads is <strong>a security risk</strong>. That's why there is a !link in Administer > User Management > Access Control for enabling the file browser to certain groups.</p>"
-msgstr "<h3>Bezpieczeństwo</h3><p>Uwaga: włączenie opcji uploadowania plików zawsze obarczone jest <strong>potencjalnym ryzykiem</strong>. Z tego powodu dostępne jest !link do udostępnienia przeglądarki plików.</p>"
-
-#: fckeditor.module:103
-msgid "separate permission"
-msgstr "oddzielne uprawnienie"
-
-#: fckeditor.module:105
-msgid "<h3>How to enable the file browser</h3><p>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).</p><p>To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:<br /><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)<br/><br/> or <code>!config3</code> <br/> (FCKeditor 2.5+) </p><p>In this file you will need to enable the file browser:<br /><code>&#36;Config['Enabled'] = true;</code></p><p>To use the drupal files directory you also need to adjust the following variables in the connector configuration:<br/><code>&#36;Config['UserFilesPath']</code> and <code>&#36;Config['UserFilesAbsolutePath']</code>.<br/>Point <code>&#36;Config['UserFilesPath']</code> to the path to drupal &quot;files&quot; directory and set <code>&#36;Config['UserFilesAbsolutePath']</code> to the absolute path to the same directory.</p><p>Furthermore, you will need to create a <em>'File'</em>, <em>'Image'</em>, <em>'Flash'</em> and <em>'Media'</em> subdirectory in your drupal files directory ('!filesdir'). These directories must have the same privileges as the drupal files directory. In some cases these directories must be world writable (chmod 0777).</p>"
-msgstr "<h3>Konfiguracja przeglądarki plików</h3><p>Edytor udostępnia Ci spore możliwości w zakresie podłączenia menadżera plików. Wbudowana w FCKeditor przeglądarka plików umożliwia uzytkownikom przegladanie zawartości wybranego katalogu oraz zmiany zawartości tego katalogu (tworzenie folderów, uploadowanie plików).</p><p>Aby włączyć przeglądarkę plików, musisz przeedytować pliki konfiguracyjne w katalogu fckeditora. Potrzebne pliki znajduj się w katalogach:<br /><code>!config1</code><br/> and <br/><code>!config2</code> <br/> (FCKeditor 2.3.x - 2.4.x)<br/><br/> lub <code>!config3</code> <br/> (FCKeditor 2.5+) </p><p>W powyższych plikach, musisz włączyć przeglądarkę plików:<br /><code>&#36;Config['Enabled'] = true;</code></p><p>Aby używać domyślnego katalogu Drupala do uploadowania plików, musisz również dostosować powyższe zmienne:<br/> <code>&#36;Config['UserFilesPath']</code> i <code>&#36;Config['UserFilesAbsolutePath']</code> (ścieżka absolutna do katalogu z plikami).<br/>Skieruj <code>&#36;Config['UserFilesPath']</code> na ścieżkę do katalogu Drupala &quot;files&quot; (tam gdzie domyślnie trzymane są pliki) oraz ustaw zmienną <code>&#36;Config['UserFilesAbsolutePath']</code> na absolutną ścieżkę do tego samego katalogu.</p><p>W dalszej kolejności, utwórz cztery podkatalogi: <em>'File'</em>, <em>'Image'</em>, <em>'Flash'</em> and <em>'Media'</em> wewnątrz katalogu 'files' ('!filesdir'). Powyższe katalogi muszą mieć takie same uprawnienia jak domyślny katalog 'files' Drupala. W pewnych wypadkach, katalogi te muszą mieć uprawnienia ustawione na 777 (chmod 0777).</p>"
-
-#: fckeditor.module:112
-msgid "<h3>Making File Browser more secure</h3><p>Please be aware that enabling file browser simply by setting <code>&#36;Config['Enabled'] = true;</code> theoretically enables it for each user (with a little bit of hackery, it is possible to use file browser without appropiate Drupal permissions). The more secure way of enabling file browser is as follows:</p><ol><li>Instead of setting <br/> <code>&#36;Config['Enabled'] = true ;</code><br/> add the following code: <pre>!snippet</pre> straight after <code>&#36;Config['Enabled'] = false ;</code><br/>This code enables file browser only to users that have <a href="!url">!access1</a> permission.<br/>Note: if you don't set <code>&#36;drupal_path</code> correctly, FCKeditor will find it out by itself.</li><li>As of Drupal 5.2, additional step is required: <br/> locate file named <code>settings.php</code> inside your drupal directory (usually <code>sites/default/settings.php</code>) and set <code>&#36;cookie_domain</code> variable to the appropiate domain (remember to uncomment that line).</li></ol>"
-msgstr "<h3>Zabezpieczanie przeglądarki plików</h3><p>Uwaga: prezentowany powyżej sposób włączenia przeglądarki plików poprzez: <code>&#36;Config['Enabled'] = true;</code> nie jest w 100% bezpieczny (przy odrobinie hackowania, można uruchomić przeglądarkę nie posiadając odpowiednich uprawnień). W pełni bezpieczna procedura uruchomienia menadżera plików jest następująca:</p><ol><li>Zamiast dodawać <br/> <code>&#36;Config['Enabled'] = true ;</code><br/> dodaj następujący kod: <pre>!snippet</pre> zaraz po <code>&#36;Config['Enabled'] = false ;</code><br/>Kod ten umożliwa skorzystanie z przeglądarki jedynie przez uprawnionych do tego użytkowników - posiadających uprawnienie <a href="!url">!access1</a>.<br/>Zwróć uwagę, że jeśli nie ustawisz poprawnie zmiennej <code>&#36;drupal_path</code>, FCKeditor odnajdzie ją sam.</li><li>Począwszy od Drupala w wersji 5.2, należy wykonać dodatkowy krok: <br/> odszukaj plik o nazwie <code>settings.php</code> wewnątrz katalogu, do którego zainstalowałeś Drupala (zazwyczaj <code>sites/default/settings.php</code>) i ustaw zmienną <code>&#36;cookie_domain</code> na odpowiednią nazwę domeny.(pamiętaj również aby odkomentować tę linię) </li></ol>"
-
-#: fckeditor.module:136
-msgid "allow fckeditor file uploads"
-msgstr "dostęp do uploadowania plików w FCKeditorze"
-
-#: fckeditor.module:149
-msgid "administer fckeditor"
-msgstr "administracja FCKeditorem"
-
-#: fckeditor.module:200
-#: fckeditor.info:0
-msgid "FCKeditor"
-msgstr "FCKeditor"
-
-#: fckeditor.module:202
-msgid "Configure the rich editor."
-msgstr "Konfiguracja wizualnego edytora HTML."
-
-#: fckeditor.module:223
-msgid "You must give a profile name."
-msgstr "Wpisz nazwę profilu."
-
-#: fckeditor.module:227
-msgid "You must select at least one role."
-msgstr "Wybierz przynajmniej jedną rolę."
-
-#: fckeditor.module:250
-msgid "administer"
-msgstr "administruj"
-
-#: fckeditor.module:251
-msgid "fckeditor"
-msgstr "fckeditor"
-
-#: fckeditor.module:252
-msgid "Add new FCKeditor profile"
-msgstr "Dodaj nowy profil"
-
-#: fckeditor.module:258
-msgid "Edit FCKeditor profile"
-msgstr "Edytuj profil"
-
-#: fckeditor.module:264
-msgid "Deleted profile"
-msgstr "Profil usunięty"
-
-#: fckeditor.module:268;927
-msgid "Create profile"
-msgstr "Utwórz profil"
-
-#: fckeditor.module:269;931
-msgid "Update profile"
-msgstr "Uaktualnij profil"
-
-#: fckeditor.module:272
-msgid "Your FCKeditor profile has been updated."
-msgstr "FCKeditor: profil uaktualniony."
-
-#: fckeditor.module:272
-msgid "Your FCKeditor profile has been created."
-msgstr "FCKeditor: profil utworzony."
-
-#: fckeditor.module:281
-msgid "FCKeditor settings"
-msgstr "FCKeditor - ustawienia"
-
-#: fckeditor.module:285
-msgid "Could not find the FCKeditor engine installed at <strong>!fckeditor-directory</strong>. Please <a href=\"http://www.fckeditor.net/download\">download FCKeditor</a>, uncompress it and copy the folder into !fckeditor-path."
-msgstr "FCKeditor nie jest najprawdopodobniej poprawnie zainstalowany, nie odnalazłem fckeditora w katalogu <strong>!fckeditor-directory</strong>. <a href=\"http://www.fckeditor.net/download\">Pobierz FCKeditora</a> i skopiuj go do folderu !fckeditor-path."
-
-#: fckeditor.module:321
-msgid "Profile"
-msgstr "Profil"
-
-#: fckeditor.module:321
-msgid "Roles"
-msgstr "Role"
-
-#: fckeditor.module:321
-msgid "Operations"
-msgstr "Operacje"
-
-#: fckeditor.module:323
-msgid "edit"
-msgstr "edytuj"
-
-#: fckeditor.module:323
-msgid "delete"
-msgstr "usuń"
-
-#: fckeditor.module:326
-msgid "<p><a href=\"!create-profile-url\">Create new profile</a></p>"
-msgstr "<p><a href=\"!create-profile-url\">Utwórz nowy profil</a></p>"
-
-#: fckeditor.module:329
-msgid "No profiles found. Click here to <a href=\"!create-profile-url\">create a new profile</a>."
-msgstr "Nie znaleziono żadnego profilu. <a href=\"!create-profile-url\">Utwórz nowy profil</a>."
-
-#: fckeditor.module:457;458
-msgid "Switch to plain text editor"
-msgstr "Przełącz na edytor tekstowy"
-
-#: fckeditor.module:457;458
-msgid "Switch to rich text editor"
-msgstr "Przełącz na edytor WYSIWYG"
-
-#: fckeditor.module:599
-msgid "Open rich editor"
-msgstr "Otwórz zaawansowany edytor tekstu"
-
-#: fckeditor.module:632
-msgid "Rich Text Editor settings"
-msgstr "Ustawienia zaawansowanego edytora tekstu"
-
-#: fckeditor.module:640;1041
-msgid "Default state"
-msgstr "Domyślne ustawienie"
-
-#: fckeditor.module:642;682;1043;1083
-msgid "enabled"
-msgstr "włączony"
-
-#: fckeditor.module:642;682;1043;1083
-msgid "disabled"
-msgstr "wyłączony"
-
-#: fckeditor.module:643
-msgid "Should rich-text editing be enabled or disabled by default in textarea fields? If disabled, rich text editor may still be enabled using toggle or popup window."
-msgstr "Czy FCKeditor powinien być domyślnie włączony/wyłączony w polach tekstowych? Jeśli wybierzesz wyłączony, edytora nadal będziesz mógł użyć przy pomocy przełącznika (linku) lub poprzez okienko popup."
-
-#: fckeditor.module:648;1049
-msgid "Show disable/enable rich text editor toggle"
-msgstr "Pokaż link do włączenia/wyłączenia edytora"
-
-#: fckeditor.module:650;658;707;964;1051;1059;1108;1246;1253
-msgid "true"
-msgstr "tak"
-
-#: fckeditor.module:650;658;707;964;1051;1059;1108;1246;1253
-msgid "false"
-msgstr "nie"
-
-#: fckeditor.module:651
-msgid "Whether or not to show the disable/enable rich text editor toggle below the textarea. Works only if FCKeditor is not running a popup window (see below)."
-msgstr "Wybierz czy pokazywać link do włączenia/wyłączenia edytora tuż poniżej pola textarea. Zadziała tylko wówczas, gdy nie wybieresz opcji uruchamiania FCKeditora w trybie popup."
-
-#: fckeditor.module:656;1057
-msgid "Use FCKeditor in a popup window"
-msgstr "Użyj FCKeditora w trybie okienka popup"
-
-#: fckeditor.module:659;1060
-msgid "If this option is enabled a link to a popup window will be used instead of a textarea replace."
-msgstr "Jeśli wybierzesz tę opcję, link do okienka popup zostanie wyświetlony zamiast zastąpienia pola tekstowego edytorem WYSIWYG."
-
-#: fckeditor.module:664;1065
-msgid "Skin"
-msgstr "Skórka"
-
-#: fckeditor.module:667
-msgid "Choose a FCKeditor skin."
-msgstr "Wybierz skórkę dla FCKeditora"
-
-#: fckeditor.module:672;1073
-msgid "Toolbar"
-msgstr "Pasek narzędzi"
-
-#: fckeditor.module:675
-msgid "Choose a FCKeditor toolbar set."
-msgstr "Wybierz pasek narzędzi"
-
-#: fckeditor.module:680;1081
-msgid "Start the toolbar expanded"
-msgstr "Rozpocznij z rozwiniętym paskiem narzędzi"
-
-#: fckeditor.module:683;1084
-msgid "The toolbar start expanded or collapsed."
-msgstr "Wybierz w jaki sposób ma się pojawiać początkowo pasek narzędzi (rozwinięty lub zwinięty)"
-
-#: fckeditor.module:688;1089
-msgid "Width"
-msgstr "Szerokość"
-
-#: fckeditor.module:690;1091
-msgid "Width in pixels or percent. Ex: 400 or 100%"
-msgstr "Szerokość w pikselach lub procentach. Przykład: 400 lub 100%"
-
-#: fckeditor.module:697;1098
-msgid "Language"
-msgstr "Domyślny język"
-
-#: fckeditor.module:700;1101
-msgid "The language for the FCKeditor interface."
-msgstr "Język interfejsu użytkownia"
-
-#: fckeditor.module:705;1106
-msgid "Auto-detect language"
-msgstr "Auto detekcja języka"
-
-#: fckeditor.module:708;1109
-msgid "Use auto detect user language feature."
-msgstr "Użyj funkcji auto detekcji języka użytkownika"
-
-#: fckeditor.module:919
-msgid "You must <a href=\"!access-control-url\">assign</a> at least one role with the 'access fckeditor' permission before creating a profile."
-msgstr "Musisz <a href=\"!access-control-url\">przypisać</a> przynajmniej jedną rolę z uprawnieniami '!access1' przed utworzeniem profilu."
-
-#: fckeditor.module:922
-msgid "You will not be allowed to create a new profile since all user roles have already been assigned profiles. Either remove an existing fckeditor profile from at least one role or assign another role the 'access fckeditor' permission."
-msgstr "Nie będziesz miał możliwości utworzenia nowego profilu, jeśli wszystkie role już mają przypisane profile. Usuń profil FCKeditor z przynajmniej jednej roli lub przypisz jakiejś roli, która jeszcze takiego uprawnienia nie miała, uprawnienia 'access fckeditor'."
-
-#: fckeditor.module:925
-msgid "Not all user roles are shown since they already have fckeditor profiles. You must first unassign profiles in order to add them to a new one."
-msgstr "Nie wszystkie role są tutaj pokazane, ponieważ część już posiada przypisane profile FCKeditor. Aby móc dodać nowy profil do jakiejś roli, usuń ją najpierw ze starego profilu."
-
-#: fckeditor.module:936
-msgid "Basic setup"
-msgstr "Podstawowe ustawienia"
-
-#: fckeditor.module:943
-msgid "Profile name"
-msgstr "Nazwa pofilu"
-
-#: fckeditor.module:947
-msgid "Enter a name for this profile. This name is only visible within the fckeditor administration page."
-msgstr "Wybierz nazwę dla tego profilu. Nazwa będzie widoczna jedynie wewnątrz sekcji administracyjnej."
-
-#: fckeditor.module:953
-msgid "Roles allowed to use this profile"
-msgstr "Role uprawnione do użytkowania tego profilu"
-
-#: fckeditor.module:956
-msgid "Check at least one role. Only roles with '!access1' permission will be shown here."
-msgstr "Wybierz przynajmniej jedną rolę. Tylko role z uprawnieniami '!access1' są tutaj pokazane."
-
-#: fckeditor.module:962
-msgid "Allow users to customize FCKeditor appearance"
-msgstr "Czy dopuścić możliwość zmiany ustawień przez użytkowników"
-
-#: fckeditor.module:965
-msgid "If allowed, users will be able to override <code>Editor appearance</code> by visiting their profile page."
-msgstr "Jeśli włączone, użytkownicy będą mieli możliwość zmiany <code>Ustawień edytora</code> poprzez ustawienia własnego profilu."
-
-#: fckeditor.module:970
-msgid "Visibility settings"
-msgstr "Ustawienia wyświetlania"
-
-#: fckeditor.module:977
-msgid "Minimum rows"
-msgstr "Minimalna ilośc wierszy"
-
-#: fckeditor.module:979
-msgid "FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature."
-msgstr "FCKeditor będzie dostępny tylko wtedy, jeśli pole tekstowe posiada więcej niż zdefiniowaną tutaj ilość wierszy. Wpisz '1' (jeden), aby zrezygnować z tej funkcjonalności i udostępnić FCKeditora wszystkim polom tekstowym."
-
-#: fckeditor.module:984
-msgid "Use inclusion or exclusion mode"
-msgstr "Wybierz tryb włączania/wyłączania FCKeditora"
-
-#: fckeditor.module:987
-msgid "Exclude fields, will disable the editor on all selected fields"
-msgstr "Wyłącz pola na podstawie ID, wprowadź nazwy pól na których FCKeditor nie ma być dostępny"
-
-#: fckeditor.module:988
-msgid "Include fields, will only load the editor for the selected fields"
-msgstr "Włącz FCKeditor w wybranych polach (na podstawie ID)"
-
-#: fckeditor.module:989
-msgid "Exclude paths, will disable the editor for all textareas at the configured paths"
-msgstr "Wyłącz pola na podstawie ścieżek - wprowadź nazwy ścieżek, na których FCKeditor nie ma być dostępny"
-
-#: fckeditor.module:990
-msgid "Include paths, will load the editor for all large enough textareas at the configured paths."
-msgstr "Włącz FCKeditor w wybranych ścieżkach"
-
-#: fckeditor.module:991
-msgid "Choose what to do with the following values."
-msgstr "Wybierz sposób postępowania z wprowadzonymi wartościami."
-
-#: fckeditor.module:1001
-msgid "Selected fields or paths"
-msgstr "Wybierz pola/ścieżki"
-
-#: fckeditor.module:1005
-msgid "Enter fieldnames or drupal paths here, depending on the chosen option for the inclusion mode.<br />Names (HTML ID's) of fields that may or may not have an FCKeditor.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."
-msgstr "Wpisz nazwy pól lub ścieżki, w zależności od wybranej opcji.<br />Nazwy pól (ID pól tekstowych HTML), które mają mieć włączony (lub wyłączony) FCKeditor.<br />Ścieżki mogą być użyte w taki sam sposób w jaki są używane w konfiguracji bloków.<br />Możesz oddzielać kolejne definicje przecinkami, spacjami lub umieszczając każdą w osobnej linii. Możesz użyć znaku * jako symbol wieloznaczny (wildcard, na przykład <code>comment/*</code>).<br />Nie możesz jednoczenie definiować ścieżek i ID pól HTML."
-
-#: fckeditor.module:1010
-msgid "Force simplified toolbar - choose inclusion mode"
-msgstr "Wymuszenie uproszczonego paska narzędzi - zaznacz sposób wybierania"
-
-#: fckeditor.module:1013
-msgid "Include fields, will only load the simplified toolbar for the selected fields"
-msgstr "wybrane pola tekstowe według ID"
-
-#: fckeditor.module:1014
-msgid "Include paths, will load the simplified toolbar at the configured paths."
-msgstr "wybrane pola tekstowe według ścieżki"
-
-#: fckeditor.module:1015
-msgid "Choose what to do with the following values.<br/>FCKeditor will force the <code>!simple</code> toolbar on the selected fields.<br/>Useful for smaller textareas where we usually don't use very complicated HTML code, like in signatures."
-msgstr "Wybierz sposób postępowania z wprowadzonymi wartościami.<br/>FCKeditor będzie wymuszał pasek narzędzi <code>!simple</code> w wybranych polach.<br/>Użyteczne dla mniejszych pól tekstowych gdzie raczej nie korzystamy ze skomplikowanego kodu HTML, jak np. w sygnaturach."
-
-#: fckeditor.module:1025
-msgid "Selected fields or paths where simplified toolbar should appear"
-msgstr "Wybierz pola/ścieżki gdzie wymuszać uproszczony pasek narzędzi"
-
-#: fckeditor.module:1029
-msgid "If you don't want to use this feature, simply leave this field empty.<br />Enter fieldnames or drupal paths here, depending on the chosen option.<br />Names (HTML ID's) of fields that should have a simplified toolbar.<br />Paths may be used the same way as in the drupal blocks configuration.<br />You may separate the different entries by commas, spaces or newlines. You may also use * as a wildcard character (for example <code>comment/*</code>).<br />You can not mix paths and ID's."
-msgstr "Jeśli nie chcesz korzystać z tej funkcjonalności, pozostaw to pole niewypełnione.<br />Wprowadź ID pół tekstowych lub ścieżki (w zależności od wybranej opcji), które powinny mieć uproszczony pasek narzędzi.<br />Ścieżki mogą być użyte w taki sam sposób w jaki są używane w konfiguracji bloków.<br />Możesz oddzielać kolejne definicje przecinkami, spacjami lub umieszczając każdą w osobnej linii. Możesz użyć znaku * jako symbol wieloznaczny (wildcard, na przykład <code>comment/*</code>).<br />Nie możesz jednoczenie definiować ścieżek i ID pól HTML."
-
-#: fckeditor.module:1034
-msgid "Editor appearance"
-msgstr "Ustawienia edytora"
-
-#: fckeditor.module:1044
-msgid "Default editor state. If disabled, rich text editor may still be enabled using toggle or popup window."
-msgstr "Domyślny stan edytora. Jeśli wybierzesz wyłączony, edytora nadal będziesz mógł użyć przy pomocy przełącznika (linku) lub poprzez okienko popup."
-
-#: fckeditor.module:1052
-msgid "Whether or not to show the disable/enable rich text editor toggle below the textarea. Works only if FCKeditor is not running in a popup window (see below)."
-msgstr "Wybierz czy pokazywać link do włączenia/wyłączenia zaawansowanego edytora tekstowego tuż poniżej pola tekstowego. Link zostanie pokazany tylko wówczas, kiedy FCKeditor nie pracuje w trybie okienka popup (zobacz poniżej)."
-
-#: fckeditor.module:1068
-msgid "Choose a default skin."
-msgstr "Wybierz domyślną skórkę"
-
-#: fckeditor.module:1076
-msgid "Choose a default toolbar set. To define new toolbar, edit <code>fckeditor.config.js</code> located in !module_path."
-msgstr "Wybierz domyślny pasek narzędzi. Aby zdefiniować nowy pasek narzędzi (toolbar), zmodyfikuj plik <code>fckeditor.config.js</code> z katalogu !module_path."
-
-#: fckeditor.module:1124
-msgid "Cleanup and output"
-msgstr "Formatowanie tekstu"
-
-#: fckeditor.module:1131
-msgid "Enter mode"
-msgstr "Tryb [Enter]"
-
-#: fckeditor.module:1134
-msgid "Set which tag FCKeditor should use when [Enter] key is pressed."
-msgstr "Wybierz, który tag FCKeditor ma używać, kiedy naciśnięty zostanie klawisz [Enter]"
-
-#: fckeditor.module:1139
-msgid "Shift + Enter mode"
-msgstr "Tryb [Shift] + [Enter]"
-
-#: fckeditor.module:1142
-msgid "Set which tag FCKeditor should use when [Shift] + [Enter] is pressed."
-msgstr "Wybierz, który tag FCKeditor ma używać, kiedy naciśnięte zostaną klawisze [Shift] + [Enter]"
-
-#: fckeditor.module:1147
-msgid "Font formats"
-msgstr "Lista elementów blokowych"
-
-#: fckeditor.module:1151
-msgid "Semicolon separated list of HTML font formats. Allowed values are: p;div;pre;address;h1;h2;h3;h4;h5;h6"
-msgstr "Lista dozwolonych elementów blokowych oddzielona średnikami (na jej podstawie zostanie utworzona lista rozwijana). Dozwolone wartości: p;div;pre;address;h1;h2;h3;h4;h5;h6"
-
-#: fckeditor.module:1156
-msgid "Apply source formatting"
-msgstr "Formatuj kod źródłowy"
-
-#: fckeditor.module:1159
-msgid "When set to \"true\" the editor will format the XHTML when switching from WYSIWYG view to Source view, by inserting line breaks on some tags endings and indenting paragraphs, tables and lists."
-msgstr "Jeśli włączone, edytor będzie formatował kod XHTML podczas przełączania z trybu WYSIWYG na tekstowy poprzez wstawianie znaków nowej linii na koniec niektórych tagów i dokonując wcięć w paragrafach, tablicach i listach."
-
-#: fckeditor.module:1164
-msgid "Format output"
-msgstr "Formatuj"
-
-#: fckeditor.module:1167
-msgid "When set to \"true\" the editor will format the XHTML output by inserting line breaks on some tags endings and indenting paragraphs, tables and lists."
-msgstr "Jeśli włączone, edytor będzie formatował XHTML poprzez wstawianie znaków nowej linii na koniec niektórych tagów i dokonując wcięć w paragrafach, tablicach i listach."
-
-#: fckeditor.module:1182
-msgid "CSS"
-msgstr "CSS"
-
-#: fckeditor.module:1189
-msgid "Editor CSS"
-msgstr "CSS wewnątrz edytora"
-
-#: fckeditor.module:1191
-msgid "use theme css"
-msgstr "użyj styl css skórki"
-
-#: fckeditor.module:1191
-msgid "define css"
-msgstr "zdefiniowany css"
-
-#: fckeditor.module:1191
-msgid "FCKeditor default"
-msgstr "domyślny styl FCKeditor"
-
-#: fckeditor.module:1192
-msgid "Defines the CSS to be used in the editor area.<br />use theme css - load style.css from current site theme.<br/>define css - enter path for css file below.<br />FCKeditor default - uses default CSS from editor."
-msgstr "Zdefiniuj w jaki sposób CSS ma zostać zastosowane wewnątrz edytora.<br />użyj styl css skórki - załaduj plik style.css z aktualnie wybranej skórki.<br/>zdefiniowany css - podaj ścieżkę do pliku css poniżej.<br />domyślny styl FCKeditor - użyj domyślny plik CSS dostarczony z edytorem."
-
-#: fckeditor.module:1197
-msgid "CSS path"
-msgstr "Ścieżka do CSS"
-
-#: fckeditor.module:1201
-msgid "Enter path to CSS file (<em>example: \"css/editor.css\"</em>) or a list of css files seperated by a comma (<em>example: /themes/garland/style.css,http://example.com/style.css</em>).<br />Macros: %h (host name: !host), %t (path to theme: !theme)<br />Be sure to select \"define css\" above."
-msgstr "Podaj ścieżkę do pliku ze stylami CSS (<em>przykład: \"css/editor.css\"</em>) lub listę plików css oddzielonych przecinkami (<em>przykład: /themes/garland/style.css,http://example.com/style.css</em>).<br />Dozwolone są makra: %h (nazwa hosta: !host), %t (ścieżka do skórki: !theme)<br />Upewnij się że wybrałeś powyżej opcję \"zdefiniowany css\"."
-
-#: fckeditor.module:1206
-msgid "CSS classes"
-msgstr "Klasy CSS"
-
-#: fckeditor.module:1207
-msgid "Requires manual configuration."
-msgstr "Wymaga ręcznej modyfikacji pliku konfiguracyjnego."
-
-#: fckeditor.module:1208
-msgid "Style dropdown list loads styles defined in <code>!fckstyles.xml</code>. Copy this file inside your theme directory (<code>!theme</code>) and adjust it to your needs. If you modify the original file, changes will be applied to all themes, however it may get overwritten if you upgrade FCKeditor."
-msgstr "Lista rozwijana z definicją klas CSS ładuje style zdefiniowane w pliku !fckstyles.xml. Skopiuj ten plik do katalogu z wybraną skórką (<code>!theme</code>) i dostosuj do wybranych potrzeb. Jeśli zmodyfikujesz oryginalny plik, zmiany zostaną zastosowane we wszystkich skórkach, ale uwaga - możesz je utracić, jeśli je nadpiszesz przy upgradzie FCKeditora."
-
-#: fckeditor.module:1215;1224
-msgid "File browser settings"
-msgstr "Ustawienia przeglądarki plików"
-
-#: fckeditor.module:1218
-msgid "The file browser settings are not diplayed because you have configured IMCE to handle file browsing."
-msgstr "Ustawienia menadżera plików nie są dostępne, ponieważ domyślną przeglądarką plików jest IMCE."
-
-#: fckeditor.module:1227
-msgid "Set file browser settings. If you enable file uploads and disable basic and advanced file management, you will need to manage your images and other files with the core upload module or a contrib module like !imce. Please note that these options require manual configuration, check !readme for more information.<br />"
-msgstr "Ustawienia menadżera plików. Jeśli pozwolisz na uploadowanie plików, ale jednocześnie wyłączych dostęp do uproszczonego jak i zaawansowanego uploadowania plików, będziesz musiał użyć do uploadowania plików wbudowany moduł Drupala lub inny tego rodzaju moduł jak np. !imce. Rrzeczytaj !readme aby uzyskać więcej informacji."
-
-#: fckeditor.module:1247
-msgid "Allow basic file management"
-msgstr "Dostęp do uproszczonego uploadowania plików."
-
-#: fckeditor.module:1249
-msgid "Allow quick uploads. All files will be placed in the directory designated in the configuration file."
-msgstr "Dostęp do \"quick uploads\" w FCKeditor."
-
-#: fckeditor.module:1254
-msgid "Allow advanced file management"
-msgstr "Dostęp do zaawansowanego menadżera (przeglądarki) plików."
-
-#: fckeditor.module:1256
-msgid "Allow file management in the advanced file manager. All files will be placed in subdirectories of the default drupal upload directory."
-msgstr "Umożliw zarządzanie plikami poprzez zaawansowany menadżer plików. Pliki zostaną umieszczone w domyślnym katalogu drupala na uploadowane pliki."
-
-#: fckeditor.info:0
-msgid "Enables the usage of FCKeditor (WYSIWYG) instead of plain text fields."
-msgstr "Umożliwa zastąpienie zwykłych pól tekstowych wizualnym edytorem HTML (WYSIWYG)."
-