| | |
| | | // add config parameter to client script |
| | | $OUTPUT->set_env('draft_autosave', !empty($CONFIG['drafts_mbox']) ? $CONFIG['draft_autosave'] : 0); |
| | | |
| | | // no html editor if globally disabled |
| | | if (!$CONFIG['enable_htmleditor']) |
| | | $CONFIG['htmleditor'] = false; |
| | | |
| | | // get reference message and set compose mode |
| | | if ($msg_uid = get_input_value('_reply_uid', RCUBE_INPUT_GET)) |
| | |
| | | $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");'); |
| | | if ($CONFIG['enable_htmleditor']) |
| | | { |
| | | $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" : ''; |
| | | |
| | |
| | | function rcmail_editor_selector($attrib) |
| | | { |
| | | global $CONFIG, $MESSAGE, $compose_mode; |
| | | |
| | | if (!$CONFIG['enable_htmleditor']) |
| | | return ''; |
| | | |
| | | $choices = array( |
| | | 'html' => 'htmltoggle', |