UNPKG

@ckeditor/ckeditor5-list

Version:

Ordered and unordered lists feature to CKEditor 5.

19 lines (18 loc) 743 B
/** * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module list/list/utils */ import type { Editor } from 'ckeditor5/src/core.js'; /** * Helper method for creating toolbar and menu buttons and linking them with an appropriate command. * * @internal * @param editor The editor instance to which the UI component will be added. * @param commandName The name of the command. * @param label The button label. * @param icon The source of the icon. */ export declare function createUIComponents(editor: Editor, commandName: 'bulletedList' | 'numberedList' | 'todoList', label: string, icon: string): void;