@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
58 lines (57 loc) • 3.29 kB
TypeScript
/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
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';
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;
[]: ImageCustomResizeUI;
[]: 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;
}
}