crmMailing - Expand "Plain Text" if any text has been set.
[civicrm-core.git] / partials / crmMailing / body_html.html
CommitLineData
f18897d3 1<!--
38737af8 2Required vars: mailing
f18897d3 3-->
3cc9c048 4<div ng-form="htmlForm" crm-ui-id-scope>
21fb26b8 5 <div ng-controller="EmailBodyCtrl">
f8f85764
TO
6 <div style="float: right;">
7 <input crm-mailing-token on-select="$broadcast('insert:body_html', token.name)"/>
8 </div>
9
10 <div>
11 <textarea
12 crm-ui-id="htmlForm.body_html"
13 crm-ui-richtext name="body_html"
14 crm-ui-insert-rx="insert:body_html"
15 ng-model="mailing.body_html"
89f476c4
TO
16 ng-blur="checkTokens(mailing, 'body_html', 'insert:body_html')"
17 ></textarea>
f8f85764
TO
18 <span ng-model="body_html_tokens" crm-ui-validate="hasAllTokens(mailing, 'body_html')"></span>
19 </div>
21fb26b8
TO
20 </div>
21</div>