MDL-29539 HTML Editor: Fixed XHTML formatting for editor

This commit is contained in:
Rajesh Taneja
2011-09-29 09:36:57 +08:00
parent 228d24fd97
commit 856484f92f
+1 -1
View File
@@ -230,7 +230,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
//Apply editor validation if required field
$editorrules = '';
if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) {
$editorrules = 'onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
$editorrules = ' onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
}
$str .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'"'.$editorrules.'>';
$str .= s($text);