From: Tim Otten Date: Thu, 16 Jun 2022 01:04:58 +0000 (-0700) Subject: message_admin - Enable another preview mode ("HTML (Raw)") X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dfbc65ec4232ec40690e699631a5b8b020e60075;p=civicrm-core.git message_admin - Enable another preview mode ("HTML (Raw)") This is similar to the "HTML" preview, except it shows the raw HTML (with syntax highlighting). --- diff --git a/ext/message_admin/ang/crmMsgadm/Edit.js b/ext/message_admin/ang/crmMsgadm/Edit.js index d6f955271d..6e01a76a7a 100644 --- a/ext/message_admin/ang/crmMsgadm/Edit.js +++ b/ext/message_admin/ang/crmMsgadm/Edit.js @@ -251,7 +251,8 @@ formatName: 'msg_html', formats: [ {id: 0, name: 'msg_html', label: ts('HTML')}, - {id: 1, name: 'msg_text', label: ts('Text')} + {id: 1, name: 'msg_html_raw', label: ts('HTML (Raw)')}, + {id: 2, name: 'msg_text', label: ts('Text')} ], revisionName: $ctrl.tab, revisions: _.reduce(revisionTypes, function(acc, revType){ diff --git a/ext/message_admin/ang/crmMsgadm/Preview.html b/ext/message_admin/ang/crmMsgadm/Preview.html index 1c15b01242..74c9f2b226 100644 --- a/ext/message_admin/ang/crmMsgadm/Preview.html +++ b/ext/message_admin/ang/crmMsgadm/Preview.html @@ -91,6 +91,16 @@ +
+
+ +
+
+
+