1 | /**
|
2 | * @license Copyright (c) 2003-2023, 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 image/imagetextalternative/imagetextalternativeediting
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core';
|
9 | import ImageTextAlternativeCommand from './imagetextalternativecommand';
|
10 | import ImageUtils from '../imageutils';
|
11 | /**
|
12 | * The image text alternative editing plugin.
|
13 | *
|
14 | * Registers the `'imageTextAlternative'` command.
|
15 | */
|
16 | export default class ImageTextAlternativeEditing extends Plugin {
|
17 | /**
|
18 | * @inheritDoc
|
19 | */
|
20 | static get requires() {
|
21 | return [ImageUtils];
|
22 | }
|
23 | /**
|
24 | * @inheritDoc
|
25 | */
|
26 | static get pluginName() {
|
27 | return 'ImageTextAlternativeEditing';
|
28 | }
|
29 | /**
|
30 | * @inheritDoc
|
31 | */
|
32 | init() {
|
33 | this.editor.commands.add('imageTextAlternative', new ImageTextAlternativeCommand(this.editor));
|
34 | }
|
35 | }
|