$Id$
+-- 2008-09-04 version 6.x-1.x-dev
+* #303863 Fixed: "Show disable/enable rich text editor toggle" value was ignored from user settings.
+
-- 2008-08-27 version 5.x-2.x-dev
* #270430 Fixed: Compatibility with themes that put all javascript at the bottom
$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>";
- drupal_add_js('if (Drupal.jsEnabled) {$(document).ready(function() {CreateToggle("'.$element['#id'].'","'.$js_id.'", '.$fckeditor_on.');});}', 'inline');
if (!isset($element['#suffix'])) {
$element['#suffix'] = "";
}
//settings are saved as strings, not booleans
- if ($profile->settings['show_toggle'] == 't') {
+ if ($conf['show_toggle'] == 't') {
// Make sure to append to #suffix so it isn't completely overwritten
+ drupal_add_js('if (Drupal.jsEnabled) {$(document).ready(function() {CreateToggle("'.$element['#id'].'","'.$js_id.'", '.$fckeditor_on.');});}', 'inline');
$element['#suffix'] .= $wysiwyg_link;
}
// setting some variables
$toolbar = FCKEDITOR_FORCE_SIMPLE_TOOLBAR_NAME;
}
- $textarea_id = $profile->settings['show_toggle'] == 't' ? $js_id : $element['#id'];
+ $textarea_id = $conf['show_toggle'] == 't' ? $js_id : $element['#id'];
$js = $js_id ." = new FCKeditor( '". $textarea_id ."' );
". $js_id .".BasePath = '". $module_full_path ."/fckeditor/';