diff options
author | alecpl <alec@alec.pl> | 2008-06-11 08:07:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-11 08:07:33 +0000 |
commit | 6025c83ba58e016721cf02a251c917cf6fd58968 (patch) | |
tree | e97683d4bdacf370b307b487834dbf83fbb237a2 /program/include/html.php | |
parent | 23bba05d7ddf44e99534acc8f177ac1e8d814988 (diff) |
- mce_editable field is not used in tinymce3, so detect html-editable textarea by class name
Diffstat (limited to 'program/include/html.php')
-rw-r--r-- | program/include/html.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/html.php b/program/include/html.php index d0ab97633..4ac45da65 100644 --- a/program/include/html.php +++ b/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)); } } |