diff --git a/lib/form/editor.php b/lib/form/editor.php index e3e23aa..4e21e39 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -266,11 +266,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { * @return string */ function getElementTemplateType() { - if ($this->_flagFrozen){ - return 'nodisplay'; - } else { - return 'default'; - } + return 'default'; } /** @@ -447,6 +443,9 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { */ function getFrozenHtml() { - return ''; + $value = $this->_values['text']; + + return ('' != $value? htmlspecialchars($value): ' ') . + $this->_getPersistantData(); } }