UNPKG

@ckeditor/ckeditor5-media-embed

Version:

Media embed feature for CKEditor 5.

39 lines (38 loc) 992 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module media-embed/mediaembedui */ import { Plugin } from 'ckeditor5/src/core.js'; import { Dialog } from 'ckeditor5/src/ui.js'; import MediaEmbedEditing from './mediaembedediting.js'; /** * The media embed UI plugin. */ export default class MediaEmbedUI extends Plugin { /** * @inheritDoc */ static get requires(): readonly [typeof MediaEmbedEditing, typeof Dialog]; /** * @inheritDoc */ static get pluginName(): "MediaEmbedUI"; /** * @inheritDoc */ static get isOfficialPlugin(): true; private _formView; /** * @inheritDoc */ init(): void; /** * Creates a button for menu bar that will show media embed dialog. */ private _createDialogButton; private _showDialog; private _handleSubmitForm; }