UNPKG

1.14 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5import type { Heading, HeadingCommand, HeadingConfig, HeadingEditing, HeadingUI, Title, TitleConfig } from './index.js';
6declare module '@ckeditor/ckeditor5-core' {
7 interface EditorConfig {
8 /**
9 * The configuration of the heading feature. Introduced by the {@link module:heading/headingediting~HeadingEditing} feature.
10 *
11 * Read more in {@link module:heading/headingconfig~HeadingConfig}.
12 */
13 heading?: HeadingConfig;
14 /**
15 * The configuration of the {@link module:heading/title~Title title feature}.
16 *
17 * Read more in {@link module:heading/title~TitleConfig}.
18 */
19 title?: TitleConfig;
20 }
21 interface PluginsMap {
22 [Heading.pluginName]: Heading;
23 [HeadingEditing.pluginName]: HeadingEditing;
24 [HeadingUI.pluginName]: HeadingUI;
25 [Title.pluginName]: Title;
26 }
27 interface CommandsMap {
28 heading: HeadingCommand;
29 }
30}