UNPKG

1 kBJavaScriptView Raw
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/**
6 * @module image/imageresize
7 */
8import { Plugin } from 'ckeditor5/src/core.js';
9import ImageResizeButtons from './imageresize/imageresizebuttons.js';
10import ImageResizeEditing from './imageresize/imageresizeediting.js';
11import ImageResizeHandles from './imageresize/imageresizehandles.js';
12import ImageCustomResizeUI from './imageresize/imagecustomresizeui.js';
13import '../theme/imageresize.css';
14/**
15 * The image resize plugin.
16 *
17 * It adds a possibility to resize each image using handles.
18 */
19export default class ImageResize extends Plugin {
20 /**
21 * @inheritDoc
22 */
23 static get requires() {
24 return [ImageResizeEditing, ImageResizeHandles, ImageCustomResizeUI, ImageResizeButtons];
25 }
26 /**
27 * @inheritDoc
28 */
29 static get pluginName() {
30 return 'ImageResize';
31 }
32}