| 12345678910111213141516171819202122232425262728293031323334 |
- /**
- * @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 ) );
- }
- }
|