UNPKG

585 BTypeScriptView Raw
1import { Plugin } from '@ckeditor/ckeditor5-core';
2import { Paragraph } from '@ckeditor/ckeditor5-paragraph';
3
4export 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
12export interface TitleConfig {
13 placeholder?: string | undefined;
14}
15
16declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
17 interface Plugins {
18 Title: Title;
19 }
20}