From b66c1d2c627af65da3d957393cf203ed1b240c7b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 22 Dec 2015 22:44:53 -0500 Subject: [PATCH] CRM_Core_Form::addField - add wysiwyg support --- CRM/Core/Form.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index a9713154ce..8f3278ca46 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1473,15 +1473,16 @@ class CRM_Core_Form extends HTML_QuickForm_Page { case 'File': // We should not build upload file in search mode. - if (isset($props['context']) && $props['context'] == 'search') { + if ($props['context'] == 'search') { return; } $file = $this->add('file', $name, $label, $props, $required); $this->addUploadElement($name); return $file; - //case 'RichTextEditor': - //TODO: Add javascript template for wysiwyg. + case 'RichTextEditor': + return $this->add('wysiwyg', $name, $label, $props, $required); + case 'Autocomplete-Select': case 'EntityRef': return $this->addEntityRef($name, $label, $props, $required); -- 2.25.1