Browse files

Merge branch 'wip-mdl-29539-m20' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_20_STABLE
  • Loading branch information...
2 parents 98b723b + 87fccbc commit e93dd0d65092ad281daace30a379da2844887224 Sam Hemelryk committed Oct 3, 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 e93dd0d

Please sign in to comment.