UNPKG

1.2 kBTypeScriptView 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/imageblock
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import { Widget } from 'ckeditor5/src/widget.js';
10import ImageTextAlternative from './imagetextalternative.js';
11import ImageBlockEditing from './image/imageblockediting.js';
12import ImageInsertUI from './imageinsert/imageinsertui.js';
13import '../theme/image.css';
14/**
15 * The image block plugin.
16 *
17 * This is a "glue" plugin which loads the following plugins:
18 *
19 * * {@link module:image/image/imageblockediting~ImageBlockEditing},
20 * * {@link module:image/imagetextalternative~ImageTextAlternative}.
21 *
22 * Usually, it is used in conjunction with other plugins from this package. See the {@glink api/image package page}
23 * for more information.
24 */
25export default class ImageBlock extends Plugin {
26 /**
27 * @inheritDoc
28 */
29 static get requires(): readonly [typeof ImageBlockEditing, typeof Widget, typeof ImageTextAlternative, typeof ImageInsertUI];
30 /**
31 * @inheritDoc
32 */
33 static get pluginName(): "ImageBlock";
34}