Browse Source

Added static pluginName getter to ImageStyleEngine. Minor docs fixes.

Aleksander Nowodzinski 8 năm trước cách đây
mục cha
commit
00274909c9

+ 8 - 1
packages/ckeditor5-image/src/imagestyle/imagestyleengine.js

@@ -32,6 +32,13 @@ export default class ImageStyleEngine extends Plugin {
 		return [ ImageEngine ];
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'ImageStyleEngine';
+	}
+
 	/**
 	 * @inheritDoc
 	 */
@@ -278,7 +285,7 @@ function normalizeStyle( style ) {
  *			value: 'full',
  *			icon: fullWidthIcon,
  *			title: 'Full size image',
- *			class: 'image-full-size'
+ *			className: 'image-full-size'
  *		}
  *
  * @typedef {Object} module:image/imagestyle/imagestyleengine~ImageStyleFormat