@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
42 lines (41 loc) • 1.08 kB
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
import ImageUtils from '../imageutils.js';
/**
* The image resize editing feature.
*
* It adds the ability to resize each image using handles or manually by
* {@link module:image/imageresize/imageresizebuttons~ImageResizeButtons} buttons.
*/
export default class ImageResizeEditing extends Plugin {
/**
* @inheritDoc
*/
static get requires(): readonly [typeof ImageUtils];
/**
* @inheritDoc
*/
static get pluginName(): "ImageResizeEditing";
/**
* @inheritDoc
*/
constructor(editor: Editor);
/**
* @inheritDoc
*/
init(): void;
/**
* @inheritDoc
*/
afterInit(): void;
private _registerSchema;
/**
* Registers image resize converters.
*
* @param imageType The type of the image.
*/
private _registerConverters;
}