1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import type { Editor } from 'ckeditor5/src/core';
|
9 | import { EditorUI } from 'ckeditor5/src/ui';
|
10 | import type ClassicEditorUIView from './classiceditoruiview';
|
11 |
|
12 |
|
13 |
|
14 | export default class ClassicEditorUI extends EditorUI {
|
15 | |
16 |
|
17 |
|
18 | readonly view: ClassicEditorUIView;
|
19 | |
20 |
|
21 |
|
22 | private readonly _toolbarConfig;
|
23 | |
24 |
|
25 |
|
26 | private readonly _elementReplacer;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | constructor(editor: Editor, view: ClassicEditorUIView);
|
34 | /**
|
35 | * @inheritDoc
|
36 | */
|
37 | get element(): HTMLElement | null;
|
38 | /**
|
39 | * Initializes the UI.
|
40 | *
|
41 | * @param replacementElement The DOM element that will be the source for the created editor.
|
42 | */
|
43 | init(replacementElement: HTMLElement | null): void;
|
44 | /**
|
45 | * @inheritDoc
|
46 | */
|
47 | destroy(): void;
|
48 | /**
|
49 | * Initializes the editor toolbar.
|
50 | */
|
51 | private _initToolbar;
|
52 | /**
|
53 | * Enable the placeholder text on the editing root, if any was configured.
|
54 | */
|
55 | private _initPlaceholder;
|
56 | }
|