mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 20:29:15 +02:00
Updated HtmlEditorField Field()
I had a need to use onBeforeRender on a DataExtension of HtmlEditorField and noticed it wasn't there. Added return parent::Field($properties) use FormField::Field which utilizes onBeforeRender.
This commit is contained in:
parent
e1da0867d0
commit
16f5ef147e
@ -90,9 +90,8 @@ class HtmlEditorField extends TextareaField {
|
||||
}
|
||||
|
||||
$properties['Value'] = htmlentities($value->getContent(), ENT_COMPAT, 'UTF-8');
|
||||
$obj = $this->customise($properties);
|
||||
|
||||
return $obj->renderWith($this->getTemplates());
|
||||
return parent::Field($properties);
|
||||
}
|
||||
|
||||
public function getAttributes() {
|
||||
|
Loading…
Reference in New Issue
Block a user