UNPKG

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