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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • 2.1 CiviMail - alternate Javascript Content Editors
Pages: [1]

Author Topic: 2.1 CiviMail - alternate Javascript Content Editors  (Read 1571 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
2.1 CiviMail - alternate Javascript Content Editors
August 07, 2008, 12:42:40 pm
2.1 Alpha - CiviMail

I think 2.1 gives a choice of two JavaScript content editors which is great, but could someone give a few tips about how to use a our own choice.  Whenever possible, I use http://unverse.net/ because of the extremely small file size and the code is fairly modifiable considering it is JavaScript.

Tips on how to pull in a different editor like Whizzywig from http://unverse.net/ ?

It is free and I don't get any royalties other than the editor is much easier to use and modify than other editors that I have tried.

MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: 2.1 CiviMail - alternate Javascript Content Editors
August 08, 2008, 05:03:45 am
Dave,

In short:

0. Take a look at packages/HTML/QuickForm/tinymce.php and packages/HTML/QuickForm/fckeditor.php files
1. Based on their contents, prepare your own file integrating new editor.
2. Add new editor type to packages/HTML/QuickForm.php (in $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'] array)
3. Add new editor option to civicrm_option_value table (in 'wysiwyg_editor' option value group)
4. Test to see if everything works fine.
Finally: Enjoy your new editor option and contribute your integration file (packages/HTML/QuickForm/whizzywig.php?) back to CiviCRM project. :-)

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

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • 2.1 CiviMail - alternate Javascript Content Editors

This forum was archived on 2017-11-26.