- mce_editable field is not used in tinymce3, so detect html-editable textarea by class name

release-0.6
alecpl 16 years ago
parent 23bba05d7d
commit 6025c83ba5

@ -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));
}
}

Loading…
Cancel
Save