summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-05-18 13:11:22 +0000
committerthomascube <thomas@roundcube.net>2007-05-18 13:11:22 +0000
commitc944cde4d05164b6271b4f3acbbe2855e31b1a97 (patch)
tree325d12f28e6f3c7c22e58012a3d30097d953022b /program/steps
parent0ee2464a61aa97859e5c8d196e8d0359dc99c0aa (diff)
Removed HTML editor and disabled preview pane
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc7
-rw-r--r--program/steps/settings/edit_identity.inc7
-rw-r--r--program/steps/settings/func.inc4
3 files changed, 8 insertions, 10 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index a956ecffc..c668101b4 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -42,6 +42,8 @@ if ($_action=='remove-attachment' && preg_match('/^rcmfile([0-9]+)$/', $_POST['_
}
}
+// this version does not support HTML mails
+$CONFIG['htmleditor'] = false;
$MESSAGE_FORM = NULL;
$MESSAGE = NULL;
@@ -407,10 +409,6 @@ function rcmail_compose_body($attrib)
$body = rcmail_create_draft_body($body, $isHtml);
}
- $OUTPUT->include_script('tiny_mce/tiny_mce.js');
- $OUTPUT->include_script("editor.js");
- $OUTPUT->add_script('rcmail_editor_init("$__skin_path");');
-
$out = $form_start ? "$form_start\n" : '';
$saveid = new hiddenfield(array('name' => '_draft_saveid', 'value' => $compose_mode==RCUBE_COMPOSE_DRAFT ? str_replace(array('<','>'), "", $MESSAGE['headers']->messageID) : ''));
@@ -862,7 +860,6 @@ $OUTPUT->add_handlers(array(
'composeattachmentform' => 'rcmail_compose_attachment_form',
'composeattachment' => 'rcmail_compose_attachment_field',
'priorityselector' => 'rcmail_priority_selector',
- 'editorselector' => 'rcmail_editor_selector',
'receiptcheckbox' => 'rcmail_receipt_checkbox',
));
diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc
index 51a0cd0a0..07c820599 100644
--- a/program/steps/settings/edit_identity.inc
+++ b/program/steps/settings/edit_identity.inc
@@ -46,6 +46,7 @@ function rcube_identity_form($attrib)
{
global $IDENTITY_RECORD, $OUTPUT;
+/*
$OUTPUT->include_script('tiny_mce/tiny_mce_src.js');
$OUTPUT->add_script("tinyMCE.init({ mode : 'specific_textareas'," .
"apply_source_formatting : true," .
@@ -58,7 +59,7 @@ function rcube_identity_form($attrib)
"theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr'," .
"theme_advanced_buttons2 : 'link,unlink,code,forecolor,fontselect,fontsizeselect'," .
"theme_advanced_buttons3 : '' });");
-
+*/
if (!$IDENTITY_RECORD && $GLOBALS['_action']!='add-identity')
return rcube_label('notfound');
@@ -76,8 +77,8 @@ function rcube_identity_form($attrib)
'organization' => array('type' => 'text'),
'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\');'),
+ 'signature' => array('type' => 'textarea', 'size' => "40", 'rows' => "4"),
+ // 'html_signature'=>array('type' => 'checkbox', 'label' => 'htmlsignature', 'onclick' => 'return rcmail.toggle_editor(this, \'_signature\');'),
'standard' => array('type' => 'checkbox', 'label' => 'setdefault'));
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 91212e174..574cd626c 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -158,7 +158,7 @@ function rcmail_user_prefs_form($attrib)
}
// Show checkbox for HTML Editor
- if (!isset($no_override['htmleditor']))
+ if (false && !isset($no_override['htmleditor']))
{
$field_id = 'rcmfd_htmleditor';
$input_htmleditor = new checkbox(array('name' => '_htmleditor', 'id' => $field_id, 'value' => 1));
@@ -169,7 +169,7 @@ function rcmail_user_prefs_form($attrib)
}
// show config parameter for preview pane
- if (!isset($no_override['preview_pane']))
+ if (false && !isset($no_override['preview_pane']))
{
$field_id = 'rcmfd_preview';
$input_preview = new checkbox(array('name' => '_preview_pane', 'id' => $field_id, 'value' => 1));