diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-11 08:07:33 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-11 08:07:33 +0000 |
| commit | 132e7ea6e06ebdbe05f477d5f3a93cad32a421e7 (patch) | |
| tree | 5d1b56a90e8a5eb1ad0d5239ef282a3187af325f | |
| parent | cc6138a1b68456ac4e5fb1de6df648158f191a0b (diff) | |
- mce_editable field is not used in tinymce3, so detect html-editable textarea by class name
git-svn-id: https://svn.roundcube.net/trunk@1504 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/html.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php index d0ab97633..4ac45da65 100644 --- a/roundcubemail/program/include/html.php +++ b/roundcubemail/program/include/html.php @@ -441,9 +441,10 @@ class html_textarea extends html unset($this->attrib['value']); } - if (!empty($value) && !isset($this->attrib['mce_editable'])) { + if (!empty($value) && !ereg('mce_editor', $this->attrib['class'])) { $value = Q($value, 'strict', false); } + return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed_attrib)); } } |
