Parcourir la source

Docs: Improved error docs.

Piotrek Koszuliński il y a 8 ans
Parent
commit
58ac1ad6a4
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      packages/ckeditor5-ui/src/toolbar/toolbarview.js

+ 4 - 0
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -138,6 +138,10 @@ export default class ToolbarView extends View {
 				 * Make sure the plugin responsible for this toolbar item is loaded and the toolbar configuration
 				 * is correct, e.g. {@link module:basic-styles/bold~Bold} is loaded for the `'bold'` toolbar item.
 				 *
+				 * You can use the following snippet to retrieve all available toolbar items:
+				 *
+				 *		Array.from( editor.ui.componentFactory.names );
+				 *
 				 * @error toolbarview-item-unavailable
 				 * @param {String} name The name of the component.
 				 */