浏览代码

Docs: Minor updates.

Kamil Piechaczek 8 年之前
父节点
当前提交
36b8420490
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      packages/ckeditor5-core/src/plugincollection.js

+ 6 - 3
packages/ckeditor5-core/src/plugincollection.js

@@ -175,10 +175,13 @@ export default class PluginCollection {
 
 
 			if ( !PluginConstructor ) {
 			if ( !PluginConstructor ) {
 				/**
 				/**
-				 * The loaded plugin module is not available.
+				 * The plugin cannot be loaded by name.
 				 *
 				 *
-				 * @error plugincollection-instance
-				 * @param {*} plugin The constructor which is meant to be loaded as a plugin.
+				 * Plugin classes need to be provided to the editor before they can be loaded by name. This is usually done by the builder.
+				 * TODO update this error with links to docs because it will be a very frequent problem.
+				 *
+				 * @error plugincollection-plugin-not-found
+				 * @param {String} pluginName The name of the plugin which could not be loaded.
 				 */
 				 */
 				throw new CKEditorError(
 				throw new CKEditorError(
 					'plugincollection-instance: Given plugin name is not available.',
 					'plugincollection-instance: Given plugin name is not available.',