@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
57 lines (56 loc) • 3.19 kB
TypeScript
/**
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import type { ImageConfig, AutoImage, Image, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, ImageUtils, ImageBlockEditing, ImageEditing, ImageCaptionEditing, ImageCaptionUI, ImageCaptionUtils, ImageInsertUI, ImageResizeEditing, ImageSizeAttributes, ImageStyleEditing, ImageStyleUI, ImageTextAlternativeEditing, ImageTextAlternativeUI, ImageUploadEditing, ImageUploadProgress, ImageUploadUI, ImageTypeCommand, InsertImageCommand, ReplaceImageSourceCommand, ToggleImageCaptionCommand, ResizeImageCommand, ImageStyleCommand, ImageTextAlternativeCommand, UploadImageCommand } from '.';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the image features. Used by the image features in the `@ckeditor/ckeditor5-image` package.
*
* Read more in {@link module:image/imageconfig~ImageConfig}.
*/
image?: ImageConfig;
}
interface PluginsMap {
[ ]: AutoImage;
[ ]: Image;
[ ]: ImageBlock;
[ ]: ImageCaption;
[ ]: ImageInline;
[ ]: ImageInsert;
[ ]: ImageInsertViaUrl;
[ ]: ImageResize;
[ ]: ImageStyle;
[ ]: ImageTextAlternative;
[ ]: ImageToolbar;
[ ]: ImageUpload;
[ ]: ImageUtils;
[ ]: ImageBlockEditing;
[ ]: ImageEditing;
[ ]: ImageCaptionEditing;
[ ]: ImageCaptionUI;
[ ]: ImageCaptionUtils;
[ ]: ImageInsertUI;
[ ]: ImageResizeEditing;
[ ]: ImageSizeAttributes;
[ ]: ImageStyleEditing;
[ ]: ImageStyleUI;
[ ]: ImageTextAlternativeEditing;
[ ]: ImageTextAlternativeUI;
[ ]: ImageUploadEditing;
[ ]: ImageUploadProgress;
[ ]: ImageUploadUI;
}
interface CommandsMap {
imageTypeBlock: ImageTypeCommand;
imageTypeInline: ImageTypeCommand;
insertImage: InsertImageCommand;
replaceImageSource: ReplaceImageSourceCommand;
toggleImageCaption: ToggleImageCaptionCommand;
resizeImage: ResizeImageCommand;
imageStyle: ImageStyleCommand;
imageTextAlternative: ImageTextAlternativeCommand;
uploadImage: UploadImageCommand;
}
}