瀏覽代碼

API docs: To be consistent with the rest of the env use the shorter version of plugin name.

Piotrek Koszuliński 9 年之前
父節點
當前提交
8af065116a
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      packages/ckeditor5-core/src/plugin.js

+ 3 - 5
packages/ckeditor5-core/src/plugin.js

@@ -54,15 +54,13 @@ export default class Plugin {
 	 * name and its constructor. If not, then only by its constructor.
 	 *
 	 * The name should reflect the package name + path to that module. E.g. `ckeditor5-image/src/image.js` plugin
-	 * should be named `ckeditor5-image/image`.
+	 * should be named `image/image` (the `ckeditor5-` prefix is stripped during compilation).
 	 *
 	 * To keep a plugin class definition tight it's recommended to define this property as a static getter:
 	 *
-	 *		import Image from './image.js';
-	 *
-	 *		export default class ImageCaption extends Plugin {
+	 *		export default class ImageCaption {
      *			static get pluginName() {
-     *				return 'ckeditor5-image/image';
+     *				return 'image/imagecaption';
      *			}
 	 *		}
 	 *