-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig.ts
26 lines (24 loc) · 893 Bytes
/
config.ts
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
import {StyloConfigAttributes} from './attributes';
import {Languages} from './i18n';
import {StyloMenu} from './menu';
import {StyloPlugin} from './plugin';
import {StyloConfigToolbar} from './toolbar';
export interface StyloConfigI18n {
lang: Languages;
custom?: Record<string, string>;
}
export interface StyloConfig {
i18n?: StyloConfigI18n;
plugins?: StyloPlugin[];
toolbar?: Partial<StyloConfigToolbar>;
menus?: StyloMenu[];
/**
* In which type of nodes the placeholder "Press "/" for plugins" should be displayed
*/
placeholders?: string[];
/**
* The paragraphs that accept text. In case user / browser tries to enter text withing another type of paragraphs, Stylo will first preprend the text in a new div to avoid text nodes at the root of the contenteditable container.
*/
textParagraphs?: string[];
attributes?: Partial<StyloConfigAttributes>;
}