UNPKG

1.07 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/image
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import ImageBlock from './imageblock';
10import ImageInline from './imageinline';
11import '../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 */
25export 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}