UNPKG

944 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, 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/**
6 * @module image/imagesizeattributes
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import ImageUtils from './imageutils';
10/**
11 * This plugin enables `width` and `height` attributes in inline and block image elements.
12 */
13export default class ImageSizeAttributes extends Plugin {
14 /**
15 * @inheritDoc
16 */
17 static get requires(): readonly [typeof ImageUtils];
18 /**
19 * @inheritDoc
20 */
21 static get pluginName(): "ImageSizeAttributes";
22 /**
23 * @inheritDoc
24 */
25 afterInit(): void;
26 /**
27 * Registers the `width` and `height` attributes for inline and block images.
28 */
29 private _registerSchema;
30 /**
31 * Registers converters for `width` and `height` attributes.
32 */
33 private _registerConverters;
34}