1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import { EditorWithUI } from '@ckeditor/ckeditor5-core/src/editor/editorwithui';
|
3 |
|
4 | /**
|
5 | * This plugin defines the `'paragraph'` button. It can be used together with
|
6 | * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown.
|
7 | *
|
8 | * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must
|
9 | * be added manually.
|
10 | *
|
11 | * ClassicEditor
|
12 | * .create( {
|
13 | * plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ]
|
14 | * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
|
15 | * } )
|
16 | * .then( ... )
|
17 | * .catch( ... );
|
18 | */
|
19 | export default class ParagraphButtonUI extends Plugin {
|
20 | constructor(editor: EditorWithUI);
|
21 | readonly editor: EditorWithUI;
|
22 | init(): void;
|
23 | }
|
24 |
|
25 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
26 | interface Plugins {
|
27 | ParagraphButtonUI: ParagraphButtonUI;
|
28 | }
|
29 | }
|