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 | import { Plugin } from 'ckeditor5/src/core.js';
|
6 | import { WidgetResize } from 'ckeditor5/src/widget.js';
|
7 | import ImageUtils from '../imageutils.js';
|
8 | /**
|
9 | * The image resize by handles feature.
|
10 | *
|
11 | * It adds the ability to resize each image using handles or manually by
|
12 | * {@link module:image/imageresize/imageresizebuttons~ImageResizeButtons} buttons.
|
13 | */
|
14 | export default class ImageResizeHandles extends Plugin {
|
15 | /**
|
16 | * @inheritDoc
|
17 | */
|
18 | static get requires(): readonly [typeof WidgetResize, typeof ImageUtils];
|
19 | /**
|
20 | * @inheritDoc
|
21 | */
|
22 | static get pluginName(): "ImageResizeHandles";
|
23 | /**
|
24 | * @inheritDoc
|
25 | */
|
26 | init(): void;
|
27 | /**
|
28 | * Attaches the listeners responsible for creating a resizer for each image, except for images inside the HTML embed preview.
|
29 | */
|
30 | private _setupResizerCreator;
|
31 | }
|