Samson Mutunga 3 years ago
parent
commit
d016fe9ec2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      resources/views/app/patient/send_email.blade.php

+ 4 - 4
resources/views/app/patient/send_email.blade.php

@@ -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();
                     }
                 },