소스 검색

[use-shortcuts] support multiple shortcut sets "hpi,user" for ex.

Vijayakrishnan 3 년 전
부모
커밋
0b14f5e0c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/js/shortcut.js

+ 1 - 1
public/js/shortcut.js

@@ -126,7 +126,7 @@
                         backtrackAfterApplying = true;
                         strPart = '@';
                         let options = [], noteRTE = $(input).closest('[note-rte]');
-                        let scSets = noteRTE.attr('use-shortcuts') ? noteRTE.attr('use-shortcuts').split(',') : 'user'
+                        let scSets = noteRTE.attr('use-shortcuts') ? noteRTE.attr('use-shortcuts').split(',') : ['user']
                         for (let i = 0; i < scSets.length; i++) {
                             if(window[$.trim(scSets[i]) + 'Shortcuts']) {
                                 options = options.concat(window[$.trim(scSets[i]) + 'Shortcuts']);