CRM-16354 - Migrate forms to new wysiwyg code
[civicrm-core.git] / CRM / Custom / Form / Group.php
index 2896c9462e88ba9244bf37b2be14a2c4ef518db4..46f3a1c0f0f6487c6c481c0c6308d50108696dfd 100644 (file)
@@ -335,8 +335,8 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
     $this->assign('defaultSubtypes', json_encode($this->_subtypes));
 
     // help text
-    $this->addWysiwyg('help_pre', ts('Pre-form Help'), $attributes['help_pre']);
-    $this->addWysiwyg('help_post', ts('Post-form Help'), $attributes['help_post']);
+    $this->add('wysiwyg', 'help_pre', ts('Pre-form Help'), $attributes['help_pre']);
+    $this->add('wysiwyg', 'help_post', ts('Post-form Help'), $attributes['help_post']);
 
     // weight
     $this->add('text', 'weight', ts('Order'), $attributes['weight'], TRUE);