Permalink
Browse files

MDL-29539 HTML Editor: Fixed XHTML formatting for editor

  • Loading branch information...
1 parent 228d24f commit 856484f92ff1625758ebb9b7b4ad484fff376444 Rajesh Taneja committed Sep 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/form/editor.php
View
2 lib/form/editor.php
@@ -230,7 +230,7 @@ function toHtml() {
//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);

0 comments on commit 856484f

Please sign in to comment.