-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathOptionState.ts
More file actions
57 lines (50 loc) · 1.5 KB
/
OptionState.ts
File metadata and controls
57 lines (50 loc) · 1.5 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {
AutoFormatOptions,
CustomReplace,
EditOptions,
MarkdownOptions,
} from 'roosterjs-content-model-plugins';
import type { SidePaneElementProps } from '../SidePaneElement';
import type { ContentModelSegmentFormat, ExperimentalFeature } from 'roosterjs-content-model-types';
export interface BuildInPluginList {
autoFormat: boolean;
edit: boolean;
paste: boolean;
shortcut: boolean;
tableEdit: boolean;
contextMenu: boolean;
watermark: boolean;
emoji: boolean;
pasteOption: boolean;
sampleEntity: boolean;
markdown: boolean;
hyperlink: boolean;
imageEditPlugin: boolean;
customReplace: boolean;
hintText: boolean;
hiddenProperty: boolean;
}
export interface OptionState {
pluginList: BuildInPluginList;
// New plugin options
allowExcelNoBorderTable: boolean;
listMenu: boolean;
tableMenu: boolean;
imageMenu: boolean;
watermarkText: string;
autoFormatOptions: AutoFormatOptions;
markdownOptions: MarkdownOptions;
customReplacements: CustomReplace[];
editPluginOptions: EditOptions;
// Legacy plugin options
defaultFormat: ContentModelSegmentFormat;
linkTitle: string;
forcePreserveRatio: boolean;
tableFeaturesContainerSelector: string;
// Editor options
isRtl: boolean;
disableCache: boolean;
experimentalFeatures: Set<ExperimentalFeature>;
}
export interface OptionPaneProps extends OptionState, SidePaneElementProps {}
export const UrlPlaceholder = '$url$';