1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import { ImageConfig } from '../image';
|
3 | import ImageStyleEditing from './imagestyleediting';
|
4 |
|
5 | export default class ImageStyleUI extends Plugin {
|
6 | static readonly pluginName: 'ImageStyleUI';
|
7 | static readonly requires: [typeof ImageStyleEditing];
|
8 | readonly localizedDefaultStylesTitles: {
|
9 | 'Full size image': string;
|
10 | 'Side image': string;
|
11 | 'Left aligned image': string;
|
12 | 'Centered image': string;
|
13 | 'Right aligned image': string;
|
14 | 'Wrap text': string;
|
15 | 'Break text': string;
|
16 | 'In line': string;
|
17 | };
|
18 | init(): void;
|
19 | }
|
20 |
|
21 | export interface ImageStyleDropdownDefinition {
|
22 | name: string;
|
23 | title?: string;
|
24 | items: Array<ImageConfig['styles']>;
|
25 | }
|
26 |
|
27 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
28 | interface Plugins {
|
29 | ImageStyleUI: ImageStyleUI;
|
30 | }
|
31 | }
|