/
augmentation.ts
48 lines (42 loc) · 1.17 KB
/
augmentation.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @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
*/
import type {
CKBox,
CKBoxCommand,
CKBoxConfig,
CKBoxEditing,
CKBoxImageEdit,
CKBoxImageEditEditing,
CKBoxImageEditCommand,
CKBoxImageEditUI
} from './index.js';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the {@link module:ckbox/ckbox~CKBox CKBox feature}.
*
* Read more in {@link module:ckbox/ckboxconfig~CKBoxConfig}.
*/
ckbox?: CKBoxConfig;
}
interface PluginsMap {
[ CKBox.pluginName ]: CKBox;
[ CKBoxEditing.pluginName ]: CKBoxEditing;
[ CKBoxImageEdit.pluginName ]: CKBoxImageEdit;
[ CKBoxImageEditEditing.pluginName ]: CKBoxImageEditEditing;
[ CKBoxImageEditUI.pluginName ]: CKBoxImageEditUI;
}
interface CommandsMap {
ckbox: CKBoxCommand;
ckboxImageEdit: CKBoxImageEditCommand;
}
}
declare global {
// eslint-disable-next-line no-var
var CKBox: {
mount( wrapper: Element, options: Record<string, unknown> ): void;
mountImageEditor( wrapper: Element, options: Record<string, unknown> ): void;
};
}