From 720cfc38d891615ec49b9f032be5d5af51f7b1f0 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 22 Sep 2016 11:01:41 -0400 Subject: [PATCH] CRM-19378 - Fix rendering frozen wysiwyg fields --- CRM/Core/Form/Renderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Form/Renderer.php b/CRM/Core/Form/Renderer.php index 47ee1534c6..1535fd111e 100644 --- a/CRM/Core/Form/Renderer.php +++ b/CRM/Core/Form/Renderer.php @@ -125,9 +125,9 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { $date .= ($element->getAttribute('timeformat')) ? " $time" : ''; $el['html'] = $date . ''; } - if ($el['name'] == 'details') { - $el['html'] = str_replace('
', '', $el['html']); - $el['html'] = '' . html_entity_decode($el['html']) . ''; + // Render html for wysiwyg textareas + if ($el['type'] == 'textarea' && isset($element->_attributes['class']) && strstr($element->_attributes['class'], 'wysiwyg')) { + $el['html'] = '' . $el['value'] . ''; } else { $el['html'] = '' . $el['html'] . ''; -- 2.25.1