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

4
  • Can you run a comparison with what is on dmaster.demo.civicrm.org
    – petednz - fuzion
    Commented Mar 25, 2018 at 22:03
  • It is the same - the "HTML Format" section shows the raw HTML of the template, rather than a WYSIWYG". Commented Mar 26, 2018 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 Commented Mar 26, 2018 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
    Commented Mar 26, 2018 at 19:19

1 Answer 1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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