CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Adding HTML to 'Price Set - Pre-form Help' ?
Pages: [1]

Author Topic: Adding HTML to 'Price Set - Pre-form Help' ?  (Read 934 times)

martinb1

  • Guest
Adding HTML to 'Price Set - Pre-form Help' ?
September 21, 2009, 07:36:22 pm
Hi there

Yashodha kindly helped me with swapping the textarea editor for a addWysiwyg editor in this post - http://forum.civicrm.org/index.php/topic,9635.msg41615.html

Would it be possible to do something similar to get the wysiwyg editor "inserted" for the Price Set fields Pre-form Help and Post-form Help ?

Cheers

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Adding HTML to 'Price Set - Pre-form Help' ?
September 22, 2009, 09:27:21 am
martinb1 :

You could do the same by applying the following patch using Custom PHP Path Directory

Code: [Select]
Index: CRM/Price/Form/Set.php
===================================================================
--- CRM/Price/Form/Set.php (revision 23744)
+++ CRM/Price/Form/Set.php (working copy)
@@ -134,10 +134,8 @@
                         'objectExists', array( 'CRM_Core_DAO_PriceSet', $this->_sid, 'title' ) );
         
         // help text
-        $this->add('textarea', 'help_pre',  ts('Pre-form Help'),
-                   CRM_Core_DAO::getAttribute('CRM_Core_DAO_PriceSet', 'help_pre') );
-        $this->add('textarea', 'help_post',  ts('Post-form Help'),
-                   CRM_Core_DAO::getAttribute('CRM_Core_DAO_PriceSet', 'help_post'));
+        $this->addWysiwyg('help_pre',ts('Pre-form Help'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_PriceSet', 'help_pre'));
+        $this->addWysiwyg('help_post',ts('Post-form Help'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_PriceSet', 'help_post'));   
     

-Yashodha
         
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

martinb1

  • Guest
Re: Adding HTML to 'Price Set - Pre-form Help' ?
September 22, 2009, 09:10:27 pm
Hi Yashodha

Thanks, thats perfect !

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Adding HTML to 'Price Set - Pre-form Help' ?

This forum was archived on 2017-11-26.