|
@@ -125,10 +125,11 @@
|
|
|
case 64:
|
|
|
backtrackAfterApplying = true;
|
|
|
strPart = '@';
|
|
|
- let options = window.userShortcuts, noteRTE = $(input).closest('[note-rte]');
|
|
|
- if(noteRTE.length && noteRTE.is('[use-shortcuts]') && noteRTE.attr('use-shortcuts') && noteRTE.attr('use-shortcuts') !== 'user') {
|
|
|
- if(window[noteRTE.attr('use-shortcuts') + 'Shortcuts']) {
|
|
|
- options = window[noteRTE.attr('use-shortcuts') + 'Shortcuts'];
|
|
|
+ let options = [], noteRTE = $(input).closest('[note-rte]');
|
|
|
+ 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']);
|
|
|
}
|
|
|
}
|
|
|
show(true, options);
|