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
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core.js';
|
9 | import ImageBlock from './imageblock.js';
|
10 | import ImageInline from './imageinline.js';
|
11 | import '../theme/image.css';
|
12 | /**
|
13 | * The image plugin.
|
14 | *
|
15 | * For a detailed overview, check the {@glink features/images/images-overview image feature} documentation.
|
16 | *
|
17 | * This is a "glue" plugin which loads the following plugins:
|
18 | *
|
19 | * * {@link module:image/imageblock~ImageBlock},
|
20 | * * {@link module:image/imageinline~ImageInline},
|
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 | */
|
25 | export default class Image extends Plugin {
|
26 | /**
|
27 | * @inheritDoc
|
28 | */
|
29 | static get requires() {
|
30 | return [ImageBlock, ImageInline];
|
31 | }
|
32 | /**
|
33 | * @inheritDoc
|
34 | */
|
35 | static get pluginName() {
|
36 | return 'Image';
|
37 | }
|
38 | }
|