@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
43 lines (42 loc) • 1.34 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
*/
/**
* @module image/imageupload/imageuploadprogress
*/
import { type Editor, Plugin } from 'ckeditor5/src/core';
import '../../theme/imageuploadprogress.css';
import '../../theme/imageuploadicon.css';
import '../../theme/imageuploadloader.css';
/**
* The image upload progress plugin.
* It shows a placeholder when the image is read from the disk and a progress bar while the image is uploading.
*/
export default class ImageUploadProgress extends Plugin {
/**
* @inheritDoc
*/
static get pluginName(): "ImageUploadProgress";
/**
* The image placeholder that is displayed before real image data can be accessed.
*
* For the record, this image is a 1x1 px GIF with an aspect ratio set by CSS.
*/
private placeholder;
/**
* @inheritDoc
*/
constructor(editor: Editor);
/**
* @inheritDoc
*/
init(): void;
/**
* This method is called each time the image `uploadStatus` attribute is changed.
*
* @param evt An object containing information about the fired event.
* @param data Additional information about the change.
*/
private uploadStatusChange;
}