diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index f3590fbdb..619d19147 100755 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -177,10 +177,10 @@ class HtmlEditorField extends TextareaField { class HtmlEditorField_readonly extends ReadonlyField { function Field() { $valforInput = $this->value ? Convert::raw2att($this->value) : ""; - return "
id() . "\">$this->value

name."\" value=\"".$valforInput."\" />"; + return "id() . "\">$this->valuename."\" value=\"".$valforInput."\" />"; } function Type() { - return 'readonly'; + return 'htmleditorfield readonly'; } }