浏览代码

Added static pluginName getter to ImageStyleEngine. Minor docs fixes.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
00274909c9
共有 1 个文件被更改,包括 8 次插入1 次删除
  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