0

I am trying to edit a "Message Template" in CiviCRM 4.7.30 and Drupal 7.57, but the "HTML Format" is not showing a WYSIWYG editor, just a plain text editor.

I have gone to CiviCRM -> Administer -> Customise Data and Screens -> Display Preferences. The "WYSIWYG Editor" setting is "CKEditor" (this is the only option).

In Drupal, I have the WYSIWYG module installed.

Any thoughts?

Thanks,

Carl

  • Can you run a comparison with what is on dmaster.demo.civicrm.org – petednz - fuzion Mar 25 '18 at 22:03
  • It is the same - the "HTML Format" section shows the raw HTML of the template, rather than a WYSIWYG". – user2430147 Mar 26 '18 at 18:57
  • Ah, I've figured out the problem after looking at the code in ./sites/all/modules/civicrm/CRM/Admin/Form/MessageTemplates.php. The WYSIWYG editor is only shown if the message template is not a system message – user2430147 Mar 26 '18 at 19:13
  • Ah right. That wasn't obvious in the question. Anyhow, go ahead and Answer and Accept your own question and help close this off – petednz - fuzion Mar 26 '18 at 19:19
1

Ah, I've figured out the problem after looking at the code in ./sites/all/modules/civicrm/CRM/Admin/Form/MessageTemplates.php. The WYSIWYG editor is only shown if the message template is not a system message

  • Yes, system message templates use Smarty which I guess is why WYSIWYG isn't offered – petednz - fuzion Mar 27 '18 at 18:40

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.