+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
* $Id$
*
*/
$date .= ($element->getAttribute('timeformat')) ? " $time" : '';
$el['html'] = $date . '<input type="hidden" value="' . $element->getValue() . '" name="' . $element->getAttribute('name') . '">';
}
-
- $el['html'] = '<span class="crm-frozen-field">' . $el['html'] . '</span>';
+ // Render html for wysiwyg textareas
+ if ($el['type'] == 'textarea' && isset($element->_attributes['class']) && strstr($element->_attributes['class'], 'wysiwyg')) {
+ $el['html'] = '<span class="crm-frozen-field">' . $el['value'] . '</span>';
+ }
+ else {
+ $el['html'] = '<span class="crm-frozen-field">' . $el['html'] . '</span>';
+ }
}
// Active form elements
else {