1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import ImageBlock from './imageblock';
|
3 | import ImageInline from './imageinline';
|
4 | import { ImageInsertConfig } from './imageinsert';
|
5 | import { ImageResizeOption } from './imageresize/imageresizebuttons';
|
6 | import { ImageStyleConfig } from './imagestyle';
|
7 | import { ImageUploadConfig } from './imageupload';
|
8 |
|
9 | export default class Image extends Plugin {
|
10 | static readonly requires: [typeof ImageBlock, typeof ImageInline];
|
11 | static readonly pluginName: 'Image';
|
12 | }
|
13 |
|
14 | export interface ImageConfig {
|
15 | insert?: ImageInsertConfig | undefined;
|
16 | resizeOptions?: ImageResizeOption[] | undefined;
|
17 | resizeUnit?: 'px' | '%' | undefined;
|
18 | styles?: ImageStyleConfig | undefined;
|
19 | toolbar?: string[] | undefined;
|
20 | upload?: ImageUploadConfig | undefined;
|
21 | }
|
22 |
|
23 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
24 | interface Plugins {
|
25 | Image: Image;
|
26 | }
|
27 | }
|