summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-16 07:47:07 +0000
committeralecpl <alec@alec.pl>2010-11-16 07:47:07 +0000
commit4b410e2064cfe4392b505c2213d9772c307a5cd9 (patch)
tree9b49f7089354591bd32613e17944056cfb9cd72a /program/include/main.inc
parent8710133250ec58bb9572bce0d3e13e232b60d17a (diff)
- Execute HTML editor initialization in page footer (#1487125)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 301e2f716..77538eaba 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1576,8 +1576,9 @@ function rcube_html_editor($mode='')
$RCMAIL->output->include_script('tiny_mce/tiny_mce.js');
$RCMAIL->output->include_script('editor.js');
- $RCMAIL->output->add_script('rcmail_editor_init("$__skin_path",
- "'.JQ($lang).'", '.intval($CONFIG['enable_spellcheck']).', "'.$mode.'");');
+ $RCMAIL->output->add_script(sprintf("rcmail_editor_init('%s', '%s', %d, '%s');",
+ $__skin_path, JQ($lang), intval($CONFIG['enable_spellcheck']), $mode),
+ 'foot');
}