UNPKG

ckeditor5-image-upload-base64

Version:

The development environment of CKEditor 5 – the best browser-based rich text editor.

35 lines (30 loc) 843 B
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module image/imagetextalternative/imagetextalternativeediting */ import ImageTextAlternativeCommand from './imagetextalternativecommand'; import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; /** * The image text alternative editing plugin. * * Registers the `'imageTextAlternative'` command. * * @extends module:core/plugin~Plugin */ export default class ImageTextAlternativeEditing extends Plugin { /** * @inheritDoc */ static get pluginName() { return 'ImageTextAlternativeEditing'; } /** * @inheritDoc */ init() { this.editor.commands.add( 'imageTextAlternative', new ImageTextAlternativeCommand( this.editor ) ); } }