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 media-embed/mediaembed
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core.js';
|
9 | import { Widget } from 'ckeditor5/src/widget.js';
|
10 | import MediaEmbedEditing from './mediaembedediting.js';
|
11 | import AutoMediaEmbed from './automediaembed.js';
|
12 | import MediaEmbedUI from './mediaembedui.js';
|
13 | import '../theme/mediaembed.css';
|
14 | /**
|
15 | * The media embed plugin.
|
16 | *
|
17 | * For a detailed overview, check the {@glink features/media-embed Media Embed feature documentation}.
|
18 | *
|
19 | * This is a "glue" plugin which loads the following plugins:
|
20 | *
|
21 | * * The {@link module:media-embed/mediaembedediting~MediaEmbedEditing media embed editing feature},
|
22 | * * The {@link module:media-embed/mediaembedui~MediaEmbedUI media embed UI feature} and
|
23 | * * The {@link module:media-embed/automediaembed~AutoMediaEmbed auto-media embed feature}.
|
24 | */
|
25 | export default class MediaEmbed extends Plugin {
|
26 | /**
|
27 | * @inheritDoc
|
28 | */
|
29 | static get requires(): readonly [typeof MediaEmbedEditing, typeof MediaEmbedUI, typeof AutoMediaEmbed, typeof Widget];
|
30 | /**
|
31 | * @inheritDoc
|
32 | */
|
33 | static get pluginName(): "MediaEmbed";
|
34 | }
|