/** * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module image/imagetoolbar */ import { Plugin } from 'ckeditor5/src/core'; import { WidgetToolbarRepository } from 'ckeditor5/src/widget'; import ImageUtils from './imageutils'; /** * The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected). * * For an overview, check the {@glink features/images/images-overview#image-contextual-toolbar image contextual toolbar} documentation. * * Instances of toolbar components (e.g. buttons) are created using the editor's * {@link module:ui/componentfactory~ComponentFactory component factory} * based on the {@link module:image/imageconfig~ImageConfig#toolbar `image.toolbar` configuration option}. * * The toolbar uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon}. */ export default class ImageToolbar extends Plugin { /** * @inheritDoc */ static get requires(): readonly [typeof WidgetToolbarRepository, typeof ImageUtils]; /** * @inheritDoc */ static get pluginName(): "ImageToolbar"; /** * @inheritDoc */ afterInit(): void; }