|
@@ -70,7 +70,8 @@
|
|
|
},
|
|
|
fromEmailAddresses: [
|
|
|
'carelink@leadershiphealth.org'
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ quill: null
|
|
|
},
|
|
|
methods: {
|
|
|
setTemplate: function(evt) {
|
|
@@ -84,7 +85,7 @@
|
|
|
self.template = self.templates[value];
|
|
|
self.quill.root.innerHTML = self.template.default_message_body_tpl;
|
|
|
},
|
|
|
- loadOugoingEmailTemplates: function() {
|
|
|
+ loadOutgoingEmailTemplates: function() {
|
|
|
var self = this;
|
|
|
$.get("{{ route('outgoingEmailTemplates') }}", {}, function(response) {
|
|
|
self.templates = response.data;
|
|
@@ -95,7 +96,6 @@
|
|
|
self.quill = new Quill('#htmlBody', {
|
|
|
theme: 'snow',
|
|
|
modules:{
|
|
|
- 'syntax': true,
|
|
|
'toolbar': [
|
|
|
[{ 'font': [] }, { 'size': [] }],
|
|
|
[ 'bold', 'italic', 'underline', 'strike' ],
|
|
@@ -114,7 +114,7 @@
|
|
|
});
|
|
|
},
|
|
|
init: function() {
|
|
|
- this.loadOugoingEmailTemplates();
|
|
|
+ this.loadOutgoingEmailTemplates();
|
|
|
this.initQuillEditor();
|
|
|
}
|
|
|
},
|