mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8b6195ea6b
commit
8b1ef652d7
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user