Browse Source

Added static pluginName getter to ImageStyleEngine. Minor docs fixes.

Aleksander Nowodzinski 8 years ago
parent
commit
00274909c9
1 changed files with 8 additions and 1 deletions
  1. 8 1
      packages/ckeditor5-image/src/imagestyle/imagestyleengine.js

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

@@ -35,6 +35,13 @@ export default class ImageStyleEngine extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'ImageStyleEngine';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	init() {
 		const editor = this.editor;
 		const doc = editor.document;
@@ -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