-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathRichText.xml
More file actions
338 lines (338 loc) · 19.4 KB
/
RichText.xml
File metadata and controls
338 lines (338 loc) · 19.4 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<?xml version="1.0" encoding="utf-8" ?>
<widget id="com.mendix.widget.custom.richtext.RichText" needsEntityContext="true" pluginWidget="true" offlineCapable="true" xmlns="http://www.mendix.com/widget/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name>Rich Text</name>
<description>Rich inline or toolbar text editing</description>
<studioProCategory>Input elements</studioProCategory>
<studioCategory>Input Elements</studioCategory>
<properties>
<propertyGroup caption="General">
<propertyGroup caption="Data source">
<property key="stringAttribute" type="attribute">
<caption>Value attribute</caption>
<description>The attribute used for the content of the text editor, recommendation is to use an unlimited string data type.</description>
<attributeTypes>
<attributeType name="String" />
</attributeTypes>
</property>
</propertyGroup>
<propertyGroup caption="General">
<systemProperty key="Label" />
<property key="enableStatusBar" type="boolean" defaultValue="true">
<caption>Enable status bar</caption>
<description />
</property>
</propertyGroup>
<propertyGroup caption="Toolbar">
<property key="preset" type="enumeration" defaultValue="basic">
<caption>Toolbar</caption>
<description />
<enumerationValues>
<enumerationValue key="basic">Basic</enumerationValue>
<enumerationValue key="standard">Standard</enumerationValue>
<enumerationValue key="full">Full</enumerationValue>
<enumerationValue key="custom">Custom</enumerationValue>
</enumerationValues>
</property>
<property key="toolbarLocation" type="enumeration" defaultValue="top" required="true">
<caption>Location</caption>
<description />
<enumerationValues>
<enumerationValue key="auto">Sticky</enumerationValue>
<enumerationValue key="top">Top</enumerationValue>
<enumerationValue key="bottom">Bottom</enumerationValue>
<enumerationValue key="hide">Hide</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
<propertyGroup caption="Editability">
<systemProperty key="Editability" />
<property key="readOnlyStyle" type="enumeration" defaultValue="text">
<caption>Read-only style</caption>
<description>How the rich text editor will appear in read-only mode.</description>
<enumerationValues>
<enumerationValue key="text">Rich text</enumerationValue>
<enumerationValue key="bordered">Bordered</enumerationValue>
<enumerationValue key="readPanel">Read panel</enumerationValue>
</enumerationValues>
</property>
<property key="formOrientation" type="enumeration" defaultValue="horizontal" required="true">
<caption>Form orientation</caption>
<description>The form orientation for modals (Insert link, Insert image, Insert video).</description>
<enumerationValues>
<enumerationValue key="horizontal">Horizontal</enumerationValue>
<enumerationValue key="vertical">Vertical</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
<propertyGroup caption="Visibility">
<systemProperty key="Visibility" />
</propertyGroup>
</propertyGroup>
<propertyGroup caption="Dimensions">
<propertyGroup caption="Dimensions">
<property key="widthUnit" type="enumeration" defaultValue="percentage">
<caption>Width unit</caption>
<description />
<enumerationValues>
<enumerationValue key="pixels">Pixels</enumerationValue>
<enumerationValue key="percentage">Percentage</enumerationValue>
</enumerationValues>
</property>
<property key="width" type="integer" defaultValue="100">
<caption>Width</caption>
<description />
</property>
<property key="heightUnit" type="enumeration" defaultValue="pixels">
<caption>Height unit</caption>
<description />
<enumerationValues>
<enumerationValue key="percentageOfWidth">Auto</enumerationValue>
<enumerationValue key="pixels">Pixels</enumerationValue>
<enumerationValue key="percentageOfParent">Percentage</enumerationValue>
<enumerationValue key="percentageOfView">Viewport</enumerationValue>
</enumerationValues>
</property>
<property key="height" type="integer" defaultValue="250">
<caption>Height</caption>
<description />
</property>
<property key="minHeightUnit" type="enumeration" defaultValue="pixels">
<caption>Minimum Height unit</caption>
<description />
<enumerationValues>
<enumerationValue key="none">None</enumerationValue>
<enumerationValue key="pixels">Pixels</enumerationValue>
<enumerationValue key="percentageOfParent">Percentage</enumerationValue>
<enumerationValue key="percentageOfView">Viewport</enumerationValue>
</enumerationValues>
</property>
<property key="minHeight" type="integer" defaultValue="250">
<caption>Minimum height</caption>
<description />
</property>
<property key="maxHeightUnit" type="enumeration" defaultValue="none">
<caption>Maximum Height unit</caption>
<description />
<enumerationValues>
<enumerationValue key="none">None</enumerationValue>
<enumerationValue key="pixels">Pixels</enumerationValue>
<enumerationValue key="percentageOfParent">Percentage</enumerationValue>
<enumerationValue key="percentageOfView">Viewport</enumerationValue>
</enumerationValues>
</property>
<property key="maxHeight" type="integer" defaultValue="250">
<caption>Maximum height</caption>
<description />
</property>
<property key="OverflowY" type="enumeration" defaultValue="auto">
<caption>Vertical Overflow</caption>
<description />
<enumerationValues>
<enumerationValue key="auto">Auto</enumerationValue>
<enumerationValue key="scroll">Scroll</enumerationValue>
<enumerationValue key="hidden">Hidden</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
</propertyGroup>
<propertyGroup caption="Events">
<propertyGroup caption="Events">
<property key="onChange" type="action" required="false">
<caption>On change</caption>
<description />
</property>
<property key="onFocus" type="action" required="false">
<caption>On enter</caption>
<description />
</property>
<property key="onBlur" type="action" required="false">
<caption>On leave</caption>
<description />
</property>
<property key="onLoad" type="action" required="false">
<caption>On load</caption>
<description />
</property>
</propertyGroup>
<propertyGroup caption="On change behavior">
<property key="onChangeType" type="enumeration" defaultValue="onLeave">
<caption>On change type</caption>
<description />
<enumerationValues>
<enumerationValue key="onLeave">When user leaves input field</enumerationValue>
<enumerationValue key="onDataChange">While user is entering data</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
</propertyGroup>
<propertyGroup caption="Advanced">
<propertyGroup caption="Advanced">
<property key="spellCheck" type="boolean" defaultValue="false">
<caption>Enable spell checking</caption>
<description />
</property>
<property key="linkValidation" type="boolean" defaultValue="true">
<caption>Enable link URL validation</caption>
<description>If enabled, only valid URLs will be accepted in links.</description>
</property>
<property key="defaultFontFamily" type="textTemplate" required="false">
<caption>Default font family</caption>
<description />
</property>
<property key="defaultFontSize" type="textTemplate" required="false">
<caption>Default font size</caption>
<description />
</property>
<property key="customFonts" type="object" isList="true" required="false">
<caption>Custom fonts</caption>
<description />
<properties>
<property key="fontName" type="string" required="false">
<caption>Font name</caption>
<category>Item</category>
<description>A title for this font combination (e.g., Arial).</description>
</property>
<property key="fontStyle" type="string" required="false">
<caption>Font style</caption>
<category>Item</category>
<description>The full CSS font-family declaration that will be applied (e.g., arial, helvetica, sans-serif).</description>
</property>
</properties>
</property>
<property key="imageSource" type="datasource" isList="true" required="false">
<caption>Selectable images</caption>
<description />
</property>
<property key="imageSourceContent" type="widgets" required="false">
<caption>Content</caption>
<description>Content of a image uploader</description>
</property>
<property key="enableDefaultUpload" type="boolean" defaultValue="true">
<caption>Enable default upload</caption>
<description />
</property>
<property key="statusBarContent" type="enumeration" defaultValue="wordCount">
<caption>Status bar content</caption>
<description>Choose what to display in the status bar</description>
<enumerationValues>
<enumerationValue key="wordCount">Word count</enumerationValue>
<enumerationValue key="characterCount">Character count (text only)</enumerationValue>
<enumerationValue key="characterCountHtml">Character count (including HTML)</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
</propertyGroup>
<propertyGroup caption="Custom toolbar">
<propertyGroup caption="Custom toolbar">
<property key="toolbarConfig" type="enumeration" defaultValue="basic">
<caption>Toolbar group</caption>
<description />
<enumerationValues>
<enumerationValue key="basic">Basic</enumerationValue>
<enumerationValue key="advanced">Advanced</enumerationValue>
</enumerationValues>
</property>
<property key="history" type="boolean" defaultValue="true">
<caption>Edit History</caption>
<description />
</property>
<property key="fontStyle" type="boolean" defaultValue="true">
<caption>Font style</caption>
<description />
</property>
<property key="fontScript" type="boolean" defaultValue="true">
<caption>Font script</caption>
<description />
</property>
<property key="list" type="boolean" defaultValue="true">
<caption>List</caption>
<description />
</property>
<property key="indent" type="boolean" defaultValue="true">
<caption>Indentation</caption>
<description />
</property>
<property key="embed" type="boolean" defaultValue="true">
<caption>Embedded media</caption>
<description />
</property>
<property key="align" type="boolean" defaultValue="true">
<caption>Alignment</caption>
<description />
</property>
<property key="code" type="boolean" defaultValue="true">
<caption>Syntax</caption>
<description />
</property>
<property key="fontColor" type="boolean" defaultValue="true">
<caption>Font colors</caption>
<description />
</property>
<property key="header" type="boolean" defaultValue="true">
<caption>Content type</caption>
<description />
</property>
<property key="view" type="boolean" defaultValue="true">
<caption>View</caption>
<description />
</property>
<property key="remove" type="boolean" defaultValue="true">
<caption>Removal</caption>
<description />
</property>
<property key="tableBetter" type="boolean" defaultValue="true">
<caption>Table</caption>
<description />
</property>
<property key="advancedConfig" type="object" isList="true" required="false">
<caption>Advanced groups</caption>
<description />
<properties>
<property key="ctItemType" type="enumeration" required="true" defaultValue="separator">
<caption>Button</caption>
<category>Item</category>
<description>Button Type</description>
<enumerationValues>
<enumerationValue key="separator">separator</enumerationValue>
<enumerationValue key="undo">Undo</enumerationValue>
<enumerationValue key="redo">Redo</enumerationValue>
<enumerationValue key="bold">Bold</enumerationValue>
<enumerationValue key="italic">Italic</enumerationValue>
<enumerationValue key="underline">Underline</enumerationValue>
<enumerationValue key="strike">Strike</enumerationValue>
<enumerationValue key="superScript">Super Script</enumerationValue>
<enumerationValue key="subScript">Sub Script</enumerationValue>
<enumerationValue key="orderedList">Ordered List</enumerationValue>
<enumerationValue key="bulletList">Bullet List</enumerationValue>
<enumerationValue key="lowerAlphaList">Lower Alpha List</enumerationValue>
<enumerationValue key="checkList">Check List</enumerationValue>
<enumerationValue key="minIndent">Left Indent</enumerationValue>
<enumerationValue key="plusIndent">Right Indent</enumerationValue>
<enumerationValue key="direction">Direction</enumerationValue>
<enumerationValue key="link">Link</enumerationValue>
<enumerationValue key="image">Image</enumerationValue>
<enumerationValue key="video">Video</enumerationValue>
<enumerationValue key="formula">Formula</enumerationValue>
<enumerationValue key="blockquote">Blockquote</enumerationValue>
<enumerationValue key="code">Code</enumerationValue>
<enumerationValue key="codeBlock">Code Block</enumerationValue>
<enumerationValue key="viewCode">View Code</enumerationValue>
<enumerationValue key="align">Left Align</enumerationValue>
<enumerationValue key="centerAlign">Center Align</enumerationValue>
<enumerationValue key="rightAlign">Right Align</enumerationValue>
<enumerationValue key="font">Font Type</enumerationValue>
<enumerationValue key="size">Font Size</enumerationValue>
<enumerationValue key="color">Color</enumerationValue>
<enumerationValue key="background">Background</enumerationValue>
<enumerationValue key="header">Header</enumerationValue>
<enumerationValue key="fullscreen">Full screen</enumerationValue>
<enumerationValue key="clean">Clean</enumerationValue>
<enumerationValue key="tableBetter">Table</enumerationValue>
</enumerationValues>
</property>
</properties>
</property>
</propertyGroup>
</propertyGroup>
</properties>
</widget>