From d9344fc349e8c5765898c90bf5061e56cd21c8a0 Mon Sep 17 00:00:00 2001 From: svncommit <devs@roundcube.net> Date: Tue, 15 Apr 2008 17:22:00 -0400 Subject: [PATCH] HTML editing fixes, upgrade to TinyMCE v3.0.6 --- program/steps/settings/edit_identity.inc | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc index 7309d4b..d8802ca 100644 --- a/program/steps/settings/edit_identity.inc +++ b/program/steps/settings/edit_identity.inc @@ -40,10 +40,10 @@ global $IDENTITY_RECORD, $OUTPUT; $OUTPUT->include_script('tiny_mce/tiny_mce_src.js'); - $OUTPUT->add_script("tinyMCE.init({ mode : 'specific_textareas'," . + $OUTPUT->add_script("tinyMCE.init({ mode : 'textareas'," . + "editor_selector : 'mce_editor'," . "apply_source_formatting : true," . "content_css : '\$__skin_path' + '/editor_content.css'," . - "editor_css : '\$__skin_path' + '/editor_ui.css'," . "theme : 'advanced'," . "theme_advanced_toolbar_location : 'top'," . "theme_advanced_toolbar_align : 'left'," . @@ -69,7 +69,7 @@ 'reply-to' => array('type' => 'text', 'label' => 'replyto'), 'bcc' => array('type' => 'text'), 'signature' => array('type' => 'textarea', 'size' => "40", 'rows' => "6"), - 'html_signature'=>array('type' => 'checkbox', 'label' => 'htmlsignature', 'onclick' => 'return rcmail.toggle_editor(this, \'_signature\');'), + 'html_signature'=>array('type' => 'checkbox', 'label' => 'htmlsignature', 'onclick' => 'return rcmail.toggle_editor(this, \'rcmfd_signature\');'), 'standard' => array('type' => 'checkbox', 'label' => 'setdefault')); @@ -104,13 +104,15 @@ { $attrib['size'] = $colprop['size']; $attrib['rows'] = $colprop['rows']; - $attrib['mce_editable'] = $IDENTITY_RECORD['html_signature'] ? "true" : "false"; + if ($IDENTITY_RECORD['html_signature']) + { + $attrib['class'] = "mce_editor"; + } } else { unset($attrib['size']); unset($attrib['rows']); - unset($attrib['mce_editable']); } $label = strlen($colprop['label']) ? $colprop['label'] : $col; -- Gitblit v1.9.1