浏览代码

Feature: Named existing plugin(s).

Piotrek Koszuliński 8 年之前
父节点
当前提交
2db0ae3c0a

+ 7 - 0
packages/ckeditor5-image/src/image.js

@@ -28,4 +28,11 @@ export default class Image extends Plugin {
 	static get requires() {
 		return [ ImageEngine, Widget, ImageTextAlternative ];
 	}
+
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'image/image';
+	}
 }

+ 7 - 0
packages/ckeditor5-image/src/imagecaption.js

@@ -23,4 +23,11 @@ export default class ImageCaption extends Plugin {
 	static get requires() {
 		return [ ImageCaptionEngine ];
 	}
+
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'image/imagecaption';
+	}
 }

+ 7 - 0
packages/ckeditor5-image/src/imagestyle.js

@@ -29,6 +29,13 @@ export default class ImageStyle extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'image/imagestyle';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	init() {
 		const styles = this.editor.config.get( 'image.styles' );
 

+ 7 - 0
packages/ckeditor5-image/src/imagetextalternative.js

@@ -35,6 +35,13 @@ export default class ImageTextAlternative extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'image/imagetextalternative';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	init() {
 		this._createButton();
 

+ 7 - 0
packages/ckeditor5-image/src/imagetoolbar.js

@@ -26,6 +26,13 @@ export default class ImageToolbar extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'image/imagetoolbar';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	constructor( editor ) {
 		super( editor );