3
3
* WARNING: All changes made to this file will be overwritten
4
4
* @author Mendix Widgets Framework Team
5
5
*/
6
- import { ActionValue , EditableValue } from "mendix" ;
6
+ import { ActionValue , DynamicValue , EditableValue } from "mendix" ;
7
7
8
8
export type PresetEnum = "basic" | "standard" | "full" | "custom" ;
9
9
@@ -23,6 +23,10 @@ export type OverflowYEnum = "auto" | "scroll" | "hidden";
23
23
24
24
export type OnChangeTypeEnum = "onLeave" | "onDataChange" ;
25
25
26
+ export interface CustomFontsType {
27
+ fontName ?: DynamicValue < string > ;
28
+ }
29
+
26
30
export type ToolbarConfigEnum = "basic" | "advanced" ;
27
31
28
32
export type CtItemTypeEnum = "separator" | "undo" | "redo" | "bold" | "italic" | "underline" | "strike" | "superScript" | "subScript" | "orderedList" | "bulletList" | "lowerAlphaList" | "checkList" | "minIndent" | "plusIndent" | "direction" | "link" | "image" | "video" | "formula" | "blockquote" | "code" | "codeBlock" | "viewCode" | "align" | "centerAlign" | "rightAlign" | "font" | "size" | "color" | "background" | "header" | "fullscreen" | "clean" | "tableBetter" ;
@@ -31,6 +35,10 @@ export interface AdvancedConfigType {
31
35
ctItemType : CtItemTypeEnum ;
32
36
}
33
37
38
+ export interface CustomFontsPreviewType {
39
+ fontName : string ;
40
+ }
41
+
34
42
export interface AdvancedConfigPreviewType {
35
43
ctItemType : CtItemTypeEnum ;
36
44
}
@@ -59,6 +67,7 @@ export interface RichTextContainerProps {
59
67
onLoad ?: ActionValue ;
60
68
onChangeType : OnChangeTypeEnum ;
61
69
spellCheck : boolean ;
70
+ customFonts : CustomFontsType [ ] ;
62
71
toolbarConfig : ToolbarConfigEnum ;
63
72
history : boolean ;
64
73
fontStyle : boolean ;
@@ -100,6 +109,7 @@ export interface RichTextPreviewProps {
100
109
onLoad : { } | null ;
101
110
onChangeType : OnChangeTypeEnum ;
102
111
spellCheck : boolean ;
112
+ customFonts : CustomFontsPreviewType [ ] ;
103
113
toolbarConfig : ToolbarConfigEnum ;
104
114
history : boolean ;
105
115
fontStyle : boolean ;
0 commit comments