summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorontwerpwerk2007-04-10 09:58:01 (GMT)
committer ontwerpwerk2007-04-10 09:58:01 (GMT)
commitfc4ac99dc65735e061203cc539931499ddd22db3 (patch)
treedcb730d13fcfe9b932c942629bab3d60362d10f8
parentee3e7e231f3b6ee792189c82ad73028a46175428 (diff)
corrected some spelling mistakes
changed the wording a bit for exclusion settings made the default loading behaviour a jQuery call
-rw-r--r--fckeditor.module17
1 files changed, 7 insertions, 10 deletions
diff --git a/fckeditor.module b/fckeditor.module
index 9aee523..f23a47b 100644
--- a/fckeditor.module
+++ b/fckeditor.module
@@ -47,7 +47,6 @@ function fckeditor_help($section = '') {
'!fckeditorlink'=>l(t('FCKeditor homepage'), 'http://www.fckeditor.net'),
'!userguidelink'=>l(t('FCKeditor userguide'), 'http://wiki.fckeditor.net/UsersGuide'))
);
- $output .= "<div class=\"more-link\">".l('more help...','admin/help/fckeditor')."</div>";
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>
@@ -81,7 +80,7 @@ You may copy the needed configuration lines from the default FCKeditor configura
</ol>',
array(
'!filter'=>htmlentities('<a> <em> <strong> <small> <sup> <sub> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <img> <br> <br /> <p> <div> <span> <b> <i>'),
- '!filterlink'=> l(t('filters'),'admin/filters'))
+ '!filterlink'=> l(t('filters'), 'admin/settings/filters'))
);
$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>',
@@ -90,7 +89,7 @@ You may copy the needed configuration lines from the default FCKeditor configura
)
);
$output .= t('<h3>Security</h3>
-<p>Note that enabling file uploads is a security risk. That\'s why there is a
+<p>Note that enabling file uploads is <strong>a security risk</strong>. That\'s why there is a
separate permission in Administer > User Management > Access Control for enabling the file
browser to certain groups.</p>');
// the rest is untranslated for the moment
@@ -212,7 +211,7 @@ function fckeditor_settings_form() {
'#type' => 'textfield',
'#title' => t('Minimum rows'),
'#default_value' => variable_get('fckeditor_minimum_rows', 5),
- '#description' => t("Textareas must have a minimum of rows before FCKeditor will be triggered. Enter '1' if you do not want to use this feature."),
+ '#description' => t("FCKeditor will be triggered if the textarea has more rows than entered here. Enter '1' if you do not want to use this feature."),
);
/**
* get excluded fields - so we can have normal textareas too
@@ -225,14 +224,14 @@ function fckeditor_settings_form() {
'#cols' => 60,
'#rows' => 5,
'#default_value' => variable_get("fckeditor_exclude", ''),
- '#description' => t("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)"),
+ '#description' => t("Names (HTML ID's) of fields that may not have an FCKeditor (separated by commas, spaces or newlines. You may also use * as a wildcard character)"),
);
$form['fckeditor_exclude_settings']['fckeditor_exclude_toggle'] = array(
'#type' => 'radios',
'#title' => t('Use inclusion or exclusion mode'),
'#default_value' => variable_get('fckeditor_exclude_toggle', '0'),
'#options' => array('0'=>t('Exclude fields'), '1'=>t('Include fields'), '2'=>t('Path only')),
- '#description' => t('Choose what to do with the above values. &quot;Exclude fields&quot; wil disable the editor on all fields matching the above, &quot;Include fields&quot; will only load the editor for the fields mentioned above and &quot;Path only&quot; will match the all textareas at the mentioned paths.'),
+ '#description' => t('Choose what to do with the above values. &quot;Exclude fields&quot; will disable the editor on all fields matching the above, &quot;Include fields&quot; will only load the editor for the fields mentioned above and &quot;Path only&quot; will match all textareas at the mentioned paths.'),
);
$form['fckeditor_special_settings'] = array(
@@ -399,10 +398,8 @@ var ".$js_id." = new FCKeditor( '".$element['#id']."' );
$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
- $element['#suffix'] .= "<script type=\"text/javascript\">
- ".$js_id.".ReplaceTextarea();
-</script>\n";
+ // if no popup mode, add the editor initialization to the footer
+ drupal_add_js('if (Drupal.jsEnabled) {$(document).ready(function() {'.$js_id.'.ReplaceTextarea();});}', 'inline', 'footer');
}
}