UNPKG

1.22 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/imageinsert
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import ImageUpload from './imageupload';
10import ImageInsertViaUrl from './imageinsertviaurl';
11import ImageInsertUI from './imageinsert/imageinsertui';
12/**
13 * The image insert plugin.
14 *
15 * For a detailed overview, check the {@glink features/images/image-upload/image-upload Image upload feature}
16 * and {@glink features/images/images-inserting Insert images via source URL} documentation.
17 *
18 * This plugin does not do anything directly, but it loads a set of specific plugins
19 * to enable image uploading or inserting via implemented integrations:
20 *
21 * * {@link module:image/imageupload~ImageUpload}
22 * * {@link module:image/imageinsert/imageinsertui~ImageInsertUI}
23 */
24export default class ImageInsert extends Plugin {
25 /**
26 * @inheritDoc
27 */
28 static get pluginName() {
29 return 'ImageInsert';
30 }
31 /**
32 * @inheritDoc
33 */
34 static get requires() {
35 return [ImageUpload, ImageInsertViaUrl, ImageInsertUI];
36 }
37}