UNPKG

1.07 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/mediaembedtoolbar
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
10import './mediaembedconfig.js';
11/**
12 * The media embed toolbar plugin. It creates a toolbar for media embed that shows up when the media element is selected.
13 *
14 * Instances of toolbar components (e.g. buttons) are created based on the
15 * {@link module:media-embed/mediaembedconfig~MediaEmbedConfig#toolbar `media.toolbar` configuration option}.
16 */
17export default class MediaEmbedToolbar extends Plugin {
18 /**
19 * @inheritDoc
20 */
21 static get requires(): readonly [typeof WidgetToolbarRepository];
22 /**
23 * @inheritDoc
24 */
25 static get pluginName(): "MediaEmbedToolbar";
26 /**
27 * @inheritDoc
28 */
29 static get isOfficialPlugin(): true;
30 /**
31 * @inheritDoc
32 */
33 afterInit(): void;
34}