forked from codex-team/editor.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.ts
More file actions
36 lines (33 loc) · 739 Bytes
/
ui.ts
File metadata and controls
36 lines (33 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import Module from '../../__module';
import { Ui, UiNodes } from '../../../../types/api';
/**
* API module allowing to access some Editor UI elements
*/
export default class UiAPI extends Module {
/**
* Available methods / getters
*/
public get methods(): Ui {
return {
nodes: this.editorNodes,
/**
* There can be added some UI methods, like toggleThinMode() etc
*/
};
}
/**
* Exported classes
*/
private get editorNodes(): UiNodes {
return {
/**
* Top-level editor instance wrapper
*/
wrapper: this.Editor.UI.nodes.wrapper,
/**
* Element that holds all the Blocks
*/
redactor: this.Editor.UI.nodes.redactor,
};
}
}