From 948562c5ae9af95bc4b9a65883358954cba3a9f6 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 22 May 2014 10:49:26 -0700 Subject: [PATCH] CRM-11864 - changes for confirmation block ---------------------------------------- * CRM-11864: https://issues.civicrm.org/jira/browse/CRM-11864 --- CRM/Event/Form/ManageEvent/Registration.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index 59d9a77e16..245055e7ce 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -396,7 +396,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent */ function buildConfirmationBlock(&$form) { $attributes = CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event'); - + $attributes['confirm_text']['click_wysiwyg'] = true; // CRM-11182 - Optional confirmation page for free events $is_monetary = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_id, 'is_monetary'); $form->assign('is_monetary', $is_monetary); @@ -407,7 +407,12 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $form->addWysiwyg('confirm_text', ts('Introductory Text'), $attributes['confirm_text']); // FIXME: This hack forces height of editor to 175px. Need to modify QF classes for editors to allow passing // explicit height and width. - $form->addWysiwyg('confirm_footer_text', ts('Footer Text'), array('rows' => 2, 'cols' => 40)); + $footerAttribs = array( + 'rows' => 2, + 'cols' => 40, + 'click_wysiwyg' => true, + ); + $form->addWysiwyg('confirm_footer_text', ts('Footer Text'), $footerAttribs); } /** -- 2.25.1