1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import ImageStyleEditing from './imagestyle/imagestyleediting';
|
3 | import ImageStyleUI from './imagestyle/imagestyleui';
|
4 |
|
5 | export default class ImageStyle extends Plugin {
|
6 | static readonly requires: [typeof ImageStyleEditing, typeof ImageStyleUI];
|
7 | static readonly pluginName: 'ImageStyle';
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export interface ImageStyleConfig {
|
15 | options: Array<string | ImageStyleOptionDefinition>;
|
16 | }
|
17 |
|
18 | export interface ImageStyleOptionDefinition {
|
19 | className?: string | undefined;
|
20 | icon?: string | undefined;
|
21 | isDefault?: boolean | undefined;
|
22 | modelElements?: Array<'imageBlock' | 'imageInline'> | undefined;
|
23 | name: string;
|
24 | title?: string | undefined;
|
25 | }
|
26 |
|
27 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
28 | interface Plugins {
|
29 | ImageStyle: ImageStyle;
|
30 | }
|
31 | }
|