imagetextalternativeediting.js 843 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. 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 ImageTextAlternativeCommand from './imagetextalternativecommand';
  9. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  10. /**
  11. * The image text alternative editing plugin.
  12. *
  13. * Registers the `'imageTextAlternative'` command.
  14. *
  15. * @extends module:core/plugin~Plugin
  16. */
  17. export default class ImageTextAlternativeEditing extends Plugin {
  18. /**
  19. * @inheritDoc
  20. */
  21. static get pluginName() {
  22. return 'ImageTextAlternativeEditing';
  23. }
  24. /**
  25. * @inheritDoc
  26. */
  27. init() {
  28. this.editor.commands.add( 'imageTextAlternative', new ImageTextAlternativeCommand( this.editor ) );
  29. }
  30. }