Преглед изворни кода

Feature: Named existing plugin(s).

Piotrek Koszuliński пре 8 година
родитељ
комит
ae589d96ce

+ 8 - 1
packages/ckeditor5-typing/src/delete.js

@@ -14,9 +14,16 @@ import DeleteObserver from './deleteobserver';
 /**
  * The delete and backspace feature. Handles the <kbd>Delete</kbd> and <kbd>Backspace</kbd> keys in the editor.
  *
- * @extends core.Plugin
+ * @extends module:core/plugin~Plugin
  */
 export default class Delete extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'typing/delete';
+	}
+
 	init() {
 		const editor = this.editor;
 		const editingView = editor.editing.view;

+ 7 - 0
packages/ckeditor5-typing/src/input.js

@@ -22,6 +22,13 @@ import InputCommand from './inputcommand';
  * @extends module:core/plugin~Plugin
  */
 export default class Input extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'typing/input';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

+ 8 - 1
packages/ckeditor5-typing/src/typing.js

@@ -14,10 +14,17 @@ import Delete from './delete';
 /**
  * The typing feature. Handles typing.
  *
- * @extends core.Plugin
+ * @extends module:core/plugin~Plugin
  */
 export default class Typing extends Plugin {
 	static get requires() {
 		return [ Input, Delete ];
 	}
+
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'typing/typing';
+	}
 }