UNPKG

854 BTypeScriptView Raw
1import { DowncastConversionApi } from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher';
2import EventInfo from '@ckeditor/ckeditor5-utils/src/eventinfo';
3import { Plugin } from '@ckeditor/ckeditor5-core';
4
5export default class ImageUploadProgress extends Plugin {
6 static readonly pluginName: 'ImageUploadProgress';
7 /**
8 * The image placeholder that is displayed before real image data can be accessed.
9 */
10 readonly placeholder: string;
11 init(): void;
12 /**
13 * This method is called each time the image `uploadStatus` attribute is changed.
14 */
15 uploadStatusChange(evt: EventInfo, data: Record<string, unknown>, conversionApi: DowncastConversionApi): void;
16}
17
18declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
19 interface Plugins {
20 ImageUploadProgress: ImageUploadProgress;
21 }
22}