23 lines
487 B
TypeScript
Raw Normal View History

import { Plugin } from 'ckeditor5';
import KbdEditing from './kbdediting.js';
import KbdUI from './kbdui.js';
2020-04-09 23:40:58 +02:00
/**
* 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.
*/
export default class Kbd extends Plugin {
2020-04-09 23:40:58 +02:00
static get requires() {
return [ KbdEditing, KbdUI ];
}
public static get pluginName() {
return 'Kbd' as const;
2020-04-09 23:40:58 +02:00
}
2020-04-09 23:40:58 +02:00
}