mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
Add '_regroup/ckeditor5-keyboard-marker/' from commit 'c875badc77499941b974c0e5ea7c24728a47e35d'
git-subtree-dir: _regroup/ckeditor5-keyboard-marker git-subtree-mainline:b5fa9f8ea4git-subtree-split:c875badc77
This commit is contained in:
29
_regroup/ckeditor5-keyboard-marker/src/Kbd.js
Normal file
29
_regroup/ckeditor5-keyboard-marker/src/Kbd.js
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
||||
import KbdEditing from './KbdEditing';
|
||||
import KbdUI from './KbdUI';
|
||||
|
||||
/**
|
||||
* The keyboard shortcut feature.
|
||||
*
|
||||
* Provides a way to semantically mark keyboard shortcuts/hotkeys in the content.
|
||||
*
|
||||
* This is a "glue" plugin which loads the `KbdEditing` and `KbdUI` plugins.
|
||||
*
|
||||
* @extends module:core/plugin~Plugin
|
||||
*/
|
||||
export default class Kbd extends Plugin {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
static get requires() {
|
||||
return [ KbdEditing, KbdUI ];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
static get pluginName() {
|
||||
return 'Kbd';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user