瀏覽代碼

Wizard RTEs native behavior for TAB key

Vijayakrishnan 3 年之前
父節點
當前提交
870f9c01fe
共有 1 個文件被更改,包括 11 次插入1 次删除
  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;
+                            }
+                        }
+                    }
+                }
             }
         });