@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
35 lines (34 loc) • 944 B
TypeScript
/**
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module image/imagesizeattributes
*/
import { Plugin } from 'ckeditor5/src/core';
import ImageUtils from './imageutils';
/**
* This plugin enables `width` and `height` attributes in inline and block image elements.
*/
export default class ImageSizeAttributes extends Plugin {
/**
* @inheritDoc
*/
static get requires(): readonly [typeof ImageUtils];
/**
* @inheritDoc
*/
static get pluginName(): "ImageSizeAttributes";
/**
* @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;
}