UNPKG

@ckeditor/ckeditor5-image

Version:

Image feature for CKEditor 5.

39 lines (38 loc) 990 B
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module image/imagesizeattributes */ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core"; import { ImageUtils } from "./imageutils.js"; /** * This plugin enables `width` and `height` attributes in inline and block image elements. */ export declare class ImageSizeAttributes extends Plugin { /** * @inheritDoc */ static get requires(): PluginDependenciesOf<[ImageUtils]>; /** * @inheritDoc */ static get pluginName(): "ImageSizeAttributes"; /** * @inheritDoc */ static override get isOfficialPlugin(): true; /** * @inheritDoc */ afterInit(): void; /** * Registers the `width` and `height` attributes for inline and block images. */ private _registerSchema; /** * Registers converters for `width` and `height` attributes. */ private _registerConverters; }