UNPKG

1.28 kBTypeScriptView Raw
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 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import { Widget } from 'ckeditor5/src/widget.js';
10import MediaEmbedEditing from './mediaembedediting.js';
11import AutoMediaEmbed from './automediaembed.js';
12import MediaEmbedUI from './mediaembedui.js';
13import '../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 */
25export 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}