8
0
Pārlūkot izejas kodu

Docs: Fixed incorrect snippet. [skip ci]

Piotrek Koszuliński 8 gadi atpakaļ
vecāks
revīzija
3c4a722621
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/ckeditor5-ui/src/toolbar/toolbarview.js

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -144,7 +144,7 @@ export default class ToolbarView extends View {
 				 *
 				 * You can use the following snippet to retrieve all available toolbar items:
 				 *
-				 *		Array.from( editor.ui.componentFactory.names );
+				 *		Array.from( editor.ui.componentFactory.names() );
 				 *
 				 * @error toolbarview-item-unavailable
 				 * @param {String} name The name of the component.