Przeglądaj źródła

Even better API docs.

Piotrek Koszuliński 9 lat temu
rodzic
commit
763354aabd
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      packages/ckeditor5-core/src/plugincollection.js

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

@@ -102,16 +102,16 @@ export default class PluginCollection {
 			// TODO update this error docs with links to docs because it will be a frequent problem.
 
 			/**
-			 * The plugins cannot be found.
+			 * Some plugins are not available and could not be loaded.
 			 *
-			 * Plugin classes need to be provided to the editor before they can be loaded by name.
+			 * Plugin classes (constructors) need to be provided to the editor before they can be loaded by name.
 			 * This is usually done by the builder by setting the {@link module:core/editor/editor~Editor.build}
 			 * property.
 			 *
 			 * @error plugincollection-plugin-not-found
 			 * @param {Array.<String>} plugins The name of the plugins which could not be loaded.
 			 */
-			const errorMsg = 'plugincollection-plugin-not-found: The plugin(s) cannot be loaded by name.';
+			const errorMsg = 'plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.';
 
 			// Log the error so it's more visible on the console. Hopefuly, for better DX.
 			log.error( errorMsg, { plugins: missingPlugins } );