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/imagestyle
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core.js';
|
9 | import ImageStyleEditing from './imagestyle/imagestyleediting.js';
|
10 | import ImageStyleUI from './imagestyle/imagestyleui.js';
|
11 | /**
|
12 | * The image style plugin.
|
13 | *
|
14 | * For a detailed overview of the image styles feature, check the {@glink features/images/images-styles documentation}.
|
15 | *
|
16 | * This is a "glue" plugin which loads the following plugins:
|
17 | * * {@link module:image/imagestyle/imagestyleediting~ImageStyleEditing},
|
18 | * * {@link module:image/imagestyle/imagestyleui~ImageStyleUI}
|
19 | *
|
20 | * It provides a default configuration, which can be extended or overwritten.
|
21 | * Read more about the {@link module:image/imageconfig~ImageConfig#styles image styles configuration}.
|
22 | */
|
23 | export default class ImageStyle extends Plugin {
|
24 | /**
|
25 | * @inheritDoc
|
26 | */
|
27 | static get requires() {
|
28 | return [ImageStyleEditing, ImageStyleUI];
|
29 | }
|
30 | /**
|
31 | * @inheritDoc
|
32 | */
|
33 | static get pluginName() {
|
34 | return 'ImageStyle';
|
35 | }
|
36 | }
|