UNPKG

988 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module image/image/imageplaceholder
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import ImageUtils from '../imageutils.js';
10import '../../theme/imageplaceholder.css';
11/**
12 * Adds support for image placeholder that is automatically removed when the image is loaded.
13 */
14export default class ImagePlaceholder extends Plugin {
15 /**
16 * @inheritDoc
17 */
18 static get requires(): readonly [typeof ImageUtils];
19 /**
20 * @inheritDoc
21 */
22 static get pluginName(): "ImagePlaceholder";
23 /**
24 * @inheritDoc
25 */
26 afterInit(): void;
27 /**
28 * Extends model schema.
29 */
30 private _setupSchema;
31 /**
32 * Registers converters.
33 */
34 private _setupConversion;
35 /**
36 * Prepares listener for image load.
37 */
38 private _setupLoadListener;
39}