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 { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
6 | import ImageUtils from '../imageutils.js';
|
7 | /**
|
8 | * The image resize editing feature.
|
9 | *
|
10 | * It adds the ability to resize each image using handles or manually by
|
11 | * {@link module:image/imageresize/imageresizebuttons~ImageResizeButtons} buttons.
|
12 | */
|
13 | export default class ImageResizeEditing extends Plugin {
|
14 | /**
|
15 | * @inheritDoc
|
16 | */
|
17 | static get requires(): readonly [typeof ImageUtils];
|
18 | /**
|
19 | * @inheritDoc
|
20 | */
|
21 | static get pluginName(): "ImageResizeEditing";
|
22 | /**
|
23 | * @inheritDoc
|
24 | */
|
25 | constructor(editor: Editor);
|
26 | /**
|
27 | * @inheritDoc
|
28 | */
|
29 | init(): void;
|
30 | /**
|
31 | * @inheritDoc
|
32 | */
|
33 | afterInit(): void;
|
34 | private _registerSchema;
|
35 | /**
|
36 | * Registers image resize converters.
|
37 | *
|
38 | * @param imageType The type of the image.
|
39 | */
|
40 | private _registerConverters;
|
41 | }
|