1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
|
3 |
|
4 | export default class Title extends Plugin {
|
5 | static readonly pluginName: 'Title';
|
6 | static readonly requires: [typeof Paragraph];
|
7 | init(): void;
|
8 | getTitle(): string;
|
9 | getBody(options?: { rootName?: string | undefined; trim?: 'empty' | 'none' | undefined }): string;
|
10 | }
|
11 |
|
12 | export interface TitleConfig {
|
13 | placeholder?: string | undefined;
|
14 | }
|
15 |
|
16 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
17 | interface Plugins {
|
18 | Title: Title;
|
19 | }
|
20 | }
|