summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-30 08:32:06 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-30 08:32:06 +0200
commit646b64107a578d228a23d5b82923fb794fdb9c55 (patch)
tree792811ff7ad9201ecac322e93726b77c5bc26e74 /program/include
parent3dbfb53f2b2f3e5c3befcf74f6580d2e2d307622 (diff)
Implemented Text Editor widget that integrates all operations on
textareas including HTML editor and spellchecking
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 7a952cfe3..9639422ed 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1786,18 +1786,18 @@ class rcmail extends rcube
$lang = 'en';
}
- $script = json_encode(array(
+ $config = array(
'mode' => $mode,
'lang' => $lang,
'skin_path' => $this->output->get_skin_path(),
'spellcheck' => intval($this->config->get('enable_spellcheck')),
'spelldict' => intval($this->config->get('spellcheck_dictionary'))
- ));
+ );
$this->output->add_label('selectimage', 'addimage');
+ $this->output->set_env('editor_config', $config);
$this->output->include_script('tinymce/tinymce.min.js');
$this->output->include_script('editor.js');
- $this->output->add_script("rcmail_editor_init($script)", 'docready');
}
/**