fix: textarea md editor

This commit is contained in:
yystopf 2021-09-23 17:08:53 +08:00
parent 5b16138c5a
commit 1c27e9ccd8
2 changed files with 5 additions and 5 deletions

View File

@ -28,11 +28,10 @@
</span>
</label>
<div class="mt-10">
<%= f.text_area :email, class:"form-control", rows: "10", cols: "20",placeholer: "邮件模版" %>
<div class="pl-0 my-3 setting-item-body" id="message-template-email-editor">
<%= f.text_area :email, class:"form-control", style: 'display: none;', rows: "10", cols: "20", placeholer: "请输入邮件模版" %>
</div>
</div>
</div>
<div class="form-group">
<label>

View File

@ -1 +1,2 @@
$("#admins-message-templates-content").html("<%= j render partial: 'admins/message_templates/form', locals:{type: 'update'} %>")
$("#admins-message-templates-content").html("<%= j render partial: 'admins/message_templates/form', locals:{type: 'update'} %>")
createMDEditor('message-template-email-editor', { height: 200, placeholder: '请输入邮件模版' });