浏览代码

Internal: Added plugin name so developers who will retrieve names of all plugins (which is recommended in the docs) will not be surprised by undefined.

Piotrek Koszuliński 7 年之前
父节点
当前提交
68aec9914f
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      packages/ckeditor5-essentials/src/essentials.js

+ 10 - 0
packages/ckeditor5-essentials/src/essentials.js

@@ -31,7 +31,17 @@ import Undo from '@ckeditor/ckeditor5-undo/src/undo';
  * @extends module:core/plugin~Plugin
  */
 export default class Essentials extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
 	static get requires() {
 		return [ Clipboard, Enter, Typing, Undo ];
 	}
+
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'Essentials';
+	}
 }