1 |
|
2 |
|
3 |
|
4 |
|
5 | import type { ImageConfig, AutoImage, Image, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, ImageUtils, ImageBlockEditing, ImageEditing, ImageCaptionEditing, ImageCaptionUI, ImageCaptionUtils, ImageInsertUI, ImageResizeEditing, ImageCustomResizeUI, ImageSizeAttributes, ImageStyleEditing, ImageStyleUI, ImageTextAlternativeEditing, ImageTextAlternativeUI, ImageUploadEditing, ImageUploadProgress, ImageUploadUI, ImageTypeCommand, InsertImageCommand, ReplaceImageSourceCommand, ToggleImageCaptionCommand, ResizeImageCommand, ImageStyleCommand, ImageTextAlternativeCommand, UploadImageCommand } from './index.js';
|
6 | declare module '@ckeditor/ckeditor5-core' {
|
7 | interface EditorConfig {
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 | image?: ImageConfig;
|
14 | }
|
15 | interface PluginsMap {
|
16 | [AutoImage.pluginName]: AutoImage;
|
17 | [Image.pluginName]: Image;
|
18 | [ImageBlock.pluginName]: ImageBlock;
|
19 | [ImageCaption.pluginName]: ImageCaption;
|
20 | [ImageInline.pluginName]: ImageInline;
|
21 | [ImageInsert.pluginName]: ImageInsert;
|
22 | [ImageInsertViaUrl.pluginName]: ImageInsertViaUrl;
|
23 | [ImageResize.pluginName]: ImageResize;
|
24 | [ImageStyle.pluginName]: ImageStyle;
|
25 | [ImageTextAlternative.pluginName]: ImageTextAlternative;
|
26 | [ImageToolbar.pluginName]: ImageToolbar;
|
27 | [ImageUpload.pluginName]: ImageUpload;
|
28 | [ImageUtils.pluginName]: ImageUtils;
|
29 | [ImageBlockEditing.pluginName]: ImageBlockEditing;
|
30 | [ImageEditing.pluginName]: ImageEditing;
|
31 | [ImageCaptionEditing.pluginName]: ImageCaptionEditing;
|
32 | [ImageCaptionUI.pluginName]: ImageCaptionUI;
|
33 | [ImageCaptionUtils.pluginName]: ImageCaptionUtils;
|
34 | [ImageInsertUI.pluginName]: ImageInsertUI;
|
35 | [ImageResizeEditing.pluginName]: ImageResizeEditing;
|
36 | [ImageCustomResizeUI.pluginName]: ImageCustomResizeUI;
|
37 | [ImageSizeAttributes.pluginName]: ImageSizeAttributes;
|
38 | [ImageStyleEditing.pluginName]: ImageStyleEditing;
|
39 | [ImageStyleUI.pluginName]: ImageStyleUI;
|
40 | [ImageTextAlternativeEditing.pluginName]: ImageTextAlternativeEditing;
|
41 | [ImageTextAlternativeUI.pluginName]: ImageTextAlternativeUI;
|
42 | [ImageUploadEditing.pluginName]: ImageUploadEditing;
|
43 | [ImageUploadProgress.pluginName]: ImageUploadProgress;
|
44 | [ImageUploadUI.pluginName]: ImageUploadUI;
|
45 | }
|
46 | interface CommandsMap {
|
47 | imageTypeBlock: ImageTypeCommand;
|
48 | imageTypeInline: ImageTypeCommand;
|
49 | insertImage: InsertImageCommand;
|
50 | replaceImageSource: ReplaceImageSourceCommand;
|
51 | toggleImageCaption: ToggleImageCaptionCommand;
|
52 | resizeImage: ResizeImageCommand;
|
53 | imageStyle: ImageStyleCommand;
|
54 | imageTextAlternative: ImageTextAlternativeCommand;
|
55 | uploadImage: UploadImageCommand;
|
56 | }
|
57 | }
|