UNPKG

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