This is similar to the "HTML" preview, except it shows the raw HTML (with syntax highlighting).
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){
</div>
</div>
+ <div class="form-group" ng-if="!$ctrl.preview.loading && model.formats[$ctrl.formatId].name === 'msg_html_raw'">
+ <div class="jumbotron well col-sm-12">
+ <!-- <textarea ng-model="$ctrl.preview.html"></textarea> -->
+ <div ng-model="$ctrl.preview.html"
+ ng-disabled="true"
+ crm-monaco="$ctrl.monacoOptions({language: 'html', crmHeightPct: 0.5})"
+ ></div>
+ </div>
+ </div>
+
</div>
</div>