From 16f5ef147ee2cd734859a0ac5440818412880bb1 Mon Sep 17 00:00:00 2001 From: Tyler Kidd Date: Thu, 3 Jul 2014 08:54:37 -0500 Subject: [PATCH] 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. --- forms/HtmlEditorField.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index 9e3e62e15..bf3df78ce 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -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() {