UNPKG

@steroidsjs/ckeditor5

Version:

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

35 lines (30 loc) 864 B
/** * @license Copyright (c) 2003-2021, 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 'ckeditor5/src/core'; /** * 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 ) ); } }