1 | /**
|
2 | * @license Copyright (c) 2003-2024, 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/imagetoolbar
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core.js';
|
9 | import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
10 | import ImageUtils from './imageutils.js';
|
11 | /**
|
12 | * The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
|
13 | *
|
14 | * For an overview, check the {@glink features/images/images-overview#image-contextual-toolbar image contextual toolbar} documentation.
|
15 | *
|
16 | * Instances of toolbar components (e.g. buttons) are created using the editor's
|
17 | * {@link module:ui/componentfactory~ComponentFactory component factory}
|
18 | * based on the {@link module:image/imageconfig~ImageConfig#toolbar `image.toolbar` configuration option}.
|
19 | *
|
20 | * The toolbar uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon}.
|
21 | */
|
22 | export default class ImageToolbar extends Plugin {
|
23 | /**
|
24 | * @inheritDoc
|
25 | */
|
26 | static get requires(): readonly [typeof WidgetToolbarRepository, typeof ImageUtils];
|
27 | /**
|
28 | * @inheritDoc
|
29 | */
|
30 | static get pluginName(): "ImageToolbar";
|
31 | /**
|
32 | * @inheritDoc
|
33 | */
|
34 | afterInit(): void;
|
35 | }
|