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
This commit is contained in:
Romain Louis 2007-11-06 21:01:37 +00:00
parent 8b6195ea6b
commit 8b1ef652d7

View File

@ -177,10 +177,10 @@ class HtmlEditorField extends TextareaField {
class HtmlEditorField_readonly extends ReadonlyField { class HtmlEditorField_readonly extends ReadonlyField {
function Field() { function Field() {
$valforInput = $this->value ? Convert::raw2att($this->value) : ""; $valforInput = $this->value ? Convert::raw2att($this->value) : "";
return "<div class=\"readonly typography\" id=\"" . $this->id() . "\">$this->value</div><br /><input type=\"hidden\" name=\"".$this->name."\" value=\"".$valforInput."\" />"; return "<span class=\"readonly typography\" id=\"" . $this->id() . "\">$this->value</span><input type=\"hidden\" name=\"".$this->name."\" value=\"".$valforInput."\" />";
} }
function Type() { function Type() {
return 'readonly'; return 'htmleditorfield readonly';
} }
} }