From 8b1ef652d74c484f473af7db24c4bcf8372a0abd Mon Sep 17 00:00:00 2001 From: Romain Louis Date: Tue, 6 Nov 2007 21:01:37 +0000 Subject: [PATCH] Readonly HTML code modification to coordinate the style of the fields git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44377 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/HtmlEditorField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; } }