diff --git a/lib/form/editor.php b/lib/form/editor.php index 3832b5000c2..1f475b37d34 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -58,7 +58,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { } function getValue() { - return $this->getAttribute('value'); + return $this->_values; } function getMaxbytes() { @@ -276,4 +276,13 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { return $str; } + /** + * What to display when element is frozen. + * + * @return empty string + */ + function getFrozenHtml() { + + return ''; + } }