mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00

git-subtree-dir: _regroup/ckeditor5-keyboard-marker git-subtree-mainline: b5fa9f8ea4d8bb37e1e4804e0fe6d30657247d0f git-subtree-split: c875badc77499941b974c0e5ea7c24728a47e35d
30 lines
579 B
JavaScript
30 lines
579 B
JavaScript
|
|
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';
|
|
}
|
|
}
|