Ver Fonte

Feature: Named existing plugin(s).

Piotrek Koszuliński há 8 anos atrás
pai
commit
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

@@ -26,6 +26,13 @@ export default class ImageStyle extends Plugin {
 		return [ ImageStyleEngine ];
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'image/imagestyle';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

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

@@ -32,6 +32,13 @@ export default class ImageTextAlternative extends Plugin {
 		return [ ImageTextAlternativeEngine ];
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'image/imagetextalternative';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

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

@@ -23,6 +23,13 @@ import ImageBalloonPanel from './image/ui/imageballoonpanelview';
  * @extends module:core/plugin~Plugin
  */
 export default class ImageToolbar extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'image/imagetoolbar';
+	}
+
 	/**
 	 * @inheritDoc
 	 */