ソースを参照

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 ) {
 				/**
-				 * 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(
 					'plugincollection-instance: Given plugin name is not available.',