Browse Source

Wizard RTEs native behavior for TAB key

Vijayakrishnan 3 years ago
parent
commit
870f9c01fe
1 changed files with 11 additions and 1 deletions
  1. 11 1
      resources/views/app/patient/wizard-partials/common-script.blade.php

+ 11 - 1
resources/views/app/patient/wizard-partials/common-script.blade.php

@@ -21,7 +21,17 @@ function __initRTEs(_collection) {
         var quill = new Quill(el, {
             theme: 'snow',
             modules: {
-                toolbar: false
+                toolbar: false,
+                keyboard: {
+                    bindings: {
+                        'tab': {
+                            key: 9,
+                            handler: function(range, context) {
+                                return true;
+                            }
+                        }
+                    }
+                }
             }
         });