CRM-11864 - changes for confirmation block
authorDave Greenberg <dave@civicrm.org>
Thu, 22 May 2014 17:49:26 +0000 (10:49 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 22 May 2014 17:49:26 +0000 (10:49 -0700)
----------------------------------------
* CRM-11864:
  https://issues.civicrm.org/jira/browse/CRM-11864

CRM/Event/Form/ManageEvent/Registration.php

index 59d9a77e1655418624ffa08d9a84685358c97d11..245055e7cee2aa02f60181ed6eb9714d8aaef918 100644 (file)
@@ -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);
   }
 
   /**