@cloudcannon/configuration-types 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-collections.schema.json +9677 -0
- package/dist/cloudcannon-config.documentation.schema.json +11087 -0
- package/dist/cloudcannon-config.latest.schema.json +3640 -2288
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +11018 -9663
- package/dist/cloudcannon-config.legacy-hugo.schema.json +3482 -2127
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +11018 -9663
- package/dist/cloudcannon-config.legacy-reader.schema.json +6664 -5314
- package/dist/cloudcannon-editables.schema.json +767 -0
- package/dist/cloudcannon-inputs.schema.json +8713 -0
- package/dist/cloudcannon-schemas.schema.json +9341 -0
- package/dist/cloudcannon-snippets-definitions.schema.json +9 -0
- package/dist/cloudcannon-snippets-imports.schema.json +340 -0
- package/dist/cloudcannon-snippets.schema.json +9960 -0
- package/dist/cloudcannon-structure-value.schema.json +8715 -0
- package/dist/cloudcannon-structures.schema.json +8713 -0
- package/dist/documentation.json +59120 -0
- package/package.json +14 -12
- package/src/build-coupled.ts +3 -6
- package/src/cascade.ts +9 -6
- package/src/collections.ts +262 -0
- package/src/configuration.ts +53 -369
- package/src/documentation.ts +1 -1
- package/src/editables.ts +12 -2
- package/src/icon.ts +1 -1
- package/src/index.ts +17 -16
- package/src/inputs.ts +117 -50
- package/src/markdown.ts +69 -68
- package/src/paths.ts +11 -36
- package/src/preview.ts +51 -116
- package/src/select-values.ts +5 -8
- package/src/snippets.ts +218 -49
- package/src/source-editor.ts +25 -52
- package/src/structures.ts +17 -8
- package/src/syntax.ts +0 -103
- package/src/timezone.ts +1 -5
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-editables.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"content": {
|
|
7
|
+
"$ref": "#/definitions/ContentEditable"
|
|
8
|
+
},
|
|
9
|
+
"block": {
|
|
10
|
+
"$ref": "#/definitions/BlockEditable"
|
|
11
|
+
},
|
|
12
|
+
"link": {
|
|
13
|
+
"$ref": "#/definitions/LinkEditable"
|
|
14
|
+
},
|
|
15
|
+
"image": {
|
|
16
|
+
"$ref": "#/definitions/ImageEditable"
|
|
17
|
+
},
|
|
18
|
+
"text": {
|
|
19
|
+
"$ref": "#/definitions/TextEditable"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"definitions": {
|
|
24
|
+
"ContentEditable": {
|
|
25
|
+
"title": "Content Editable",
|
|
26
|
+
"description": "Contains input options for the Content Editor.",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"mime_type": {
|
|
30
|
+
"$ref": "#/definitions/mime_type"
|
|
31
|
+
},
|
|
32
|
+
"resize_style": {
|
|
33
|
+
"$ref": "#/definitions/resize_style"
|
|
34
|
+
},
|
|
35
|
+
"width": {
|
|
36
|
+
"$ref": "#/definitions/width"
|
|
37
|
+
},
|
|
38
|
+
"height": {
|
|
39
|
+
"$ref": "#/definitions/height"
|
|
40
|
+
},
|
|
41
|
+
"expandable": {
|
|
42
|
+
"$ref": "#/definitions/expandable"
|
|
43
|
+
},
|
|
44
|
+
"image_size_attributes": {
|
|
45
|
+
"$ref": "#/definitions/image_size_attributes"
|
|
46
|
+
},
|
|
47
|
+
"allowed_sources": {
|
|
48
|
+
"$ref": "#/definitions/allowed_sources"
|
|
49
|
+
},
|
|
50
|
+
"prevent_resize_existing_files": {
|
|
51
|
+
"$ref": "#/definitions/prevent_resize_existing_files"
|
|
52
|
+
},
|
|
53
|
+
"sizes": {
|
|
54
|
+
"$ref": "#/definitions/sizes"
|
|
55
|
+
},
|
|
56
|
+
"paths": {
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"$ref": "#/definitions/type.paths"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"bold": {
|
|
64
|
+
"$ref": "#/definitions/bold"
|
|
65
|
+
},
|
|
66
|
+
"copyformatting": {
|
|
67
|
+
"$ref": "#/definitions/copyformatting"
|
|
68
|
+
},
|
|
69
|
+
"italic": {
|
|
70
|
+
"$ref": "#/definitions/italic"
|
|
71
|
+
},
|
|
72
|
+
"link": {
|
|
73
|
+
"$ref": "#/definitions/link"
|
|
74
|
+
},
|
|
75
|
+
"redo": {
|
|
76
|
+
"$ref": "#/definitions/redo"
|
|
77
|
+
},
|
|
78
|
+
"removeformat": {
|
|
79
|
+
"$ref": "#/definitions/removeformat"
|
|
80
|
+
},
|
|
81
|
+
"strike": {
|
|
82
|
+
"$ref": "#/definitions/strike"
|
|
83
|
+
},
|
|
84
|
+
"subscript": {
|
|
85
|
+
"$ref": "#/definitions/subscript"
|
|
86
|
+
},
|
|
87
|
+
"superscript": {
|
|
88
|
+
"$ref": "#/definitions/superscript"
|
|
89
|
+
},
|
|
90
|
+
"underline": {
|
|
91
|
+
"$ref": "#/definitions/underline"
|
|
92
|
+
},
|
|
93
|
+
"undo": {
|
|
94
|
+
"$ref": "#/definitions/undo"
|
|
95
|
+
},
|
|
96
|
+
"remove_custom_markup": {
|
|
97
|
+
"$ref": "#/definitions/remove_custom_markup"
|
|
98
|
+
},
|
|
99
|
+
"allow_custom_markup": {
|
|
100
|
+
"$ref": "#/definitions/allow_custom_markup"
|
|
101
|
+
},
|
|
102
|
+
"blockquote": {
|
|
103
|
+
"$ref": "#/definitions/blockquote"
|
|
104
|
+
},
|
|
105
|
+
"bulletedlist": {
|
|
106
|
+
"$ref": "#/definitions/bulletedlist"
|
|
107
|
+
},
|
|
108
|
+
"center": {
|
|
109
|
+
"$ref": "#/definitions/center"
|
|
110
|
+
},
|
|
111
|
+
"code_inline": {
|
|
112
|
+
"$ref": "#/definitions/code_inline"
|
|
113
|
+
},
|
|
114
|
+
"code_block": {
|
|
115
|
+
"$ref": "#/definitions/code_block"
|
|
116
|
+
},
|
|
117
|
+
"code": {
|
|
118
|
+
"$ref": "#/definitions/code"
|
|
119
|
+
},
|
|
120
|
+
"embed": {
|
|
121
|
+
"$ref": "#/definitions/embed"
|
|
122
|
+
},
|
|
123
|
+
"format": {
|
|
124
|
+
"$ref": "#/definitions/format"
|
|
125
|
+
},
|
|
126
|
+
"horizontalrule": {
|
|
127
|
+
"$ref": "#/definitions/horizontalrule"
|
|
128
|
+
},
|
|
129
|
+
"image": {
|
|
130
|
+
"$ref": "#/definitions/image"
|
|
131
|
+
},
|
|
132
|
+
"indent": {
|
|
133
|
+
"$ref": "#/definitions/indent"
|
|
134
|
+
},
|
|
135
|
+
"justify": {
|
|
136
|
+
"$ref": "#/definitions/justify"
|
|
137
|
+
},
|
|
138
|
+
"left": {
|
|
139
|
+
"$ref": "#/definitions/left"
|
|
140
|
+
},
|
|
141
|
+
"numberedlist": {
|
|
142
|
+
"$ref": "#/definitions/numberedlist"
|
|
143
|
+
},
|
|
144
|
+
"outdent": {
|
|
145
|
+
"$ref": "#/definitions/outdent"
|
|
146
|
+
},
|
|
147
|
+
"right": {
|
|
148
|
+
"$ref": "#/definitions/right"
|
|
149
|
+
},
|
|
150
|
+
"snippet": {
|
|
151
|
+
"$ref": "#/definitions/snippet"
|
|
152
|
+
},
|
|
153
|
+
"styles": {
|
|
154
|
+
"$ref": "#/definitions/styles"
|
|
155
|
+
},
|
|
156
|
+
"table": {
|
|
157
|
+
"$ref": "#/definitions/table"
|
|
158
|
+
},
|
|
159
|
+
"join_above": {
|
|
160
|
+
"$ref": "#/definitions/join_above"
|
|
161
|
+
},
|
|
162
|
+
"join_below": {
|
|
163
|
+
"$ref": "#/definitions/join_below"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"markdownDescription": "Contains input options for the Content Editor."
|
|
168
|
+
},
|
|
169
|
+
"mime_type": {
|
|
170
|
+
"title": "Mime Type",
|
|
171
|
+
"description": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file.",
|
|
172
|
+
"type": "string",
|
|
173
|
+
"enum": [
|
|
174
|
+
"image/jpeg",
|
|
175
|
+
"image/png",
|
|
176
|
+
"image/webp"
|
|
177
|
+
],
|
|
178
|
+
"markdownDescription": "Sets the format images are converted to prior to upload. The extension of the file is updated to match. Defaults to keeping the mime type of the uploaded file."
|
|
179
|
+
},
|
|
180
|
+
"resize_style": {
|
|
181
|
+
"title": "Resize Style",
|
|
182
|
+
"description": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset.",
|
|
183
|
+
"default": "contain",
|
|
184
|
+
"type": "string",
|
|
185
|
+
"enum": [
|
|
186
|
+
"cover",
|
|
187
|
+
"contain",
|
|
188
|
+
"stretch",
|
|
189
|
+
"crop"
|
|
190
|
+
],
|
|
191
|
+
"markdownDescription": "Sets how uploaded image files are resized with a bounding box defined by width and height prior to upload. Has no effect when selecting existing images, or if width and height are unset."
|
|
192
|
+
},
|
|
193
|
+
"width": {
|
|
194
|
+
"title": "Width",
|
|
195
|
+
"description": "Defines the width of the bounding box used in the image resizing process defined with resize_style.",
|
|
196
|
+
"type": "number",
|
|
197
|
+
"markdownDescription": "Defines the width of the bounding box used in the image resizing process defined with resize_style."
|
|
198
|
+
},
|
|
199
|
+
"height": {
|
|
200
|
+
"title": "Height",
|
|
201
|
+
"description": "Defines the height of the bounding box used in the image resizing process defined with resize_style.",
|
|
202
|
+
"type": "number",
|
|
203
|
+
"markdownDescription": "Defines the height of the bounding box used in the image resizing process defined with resize_style."
|
|
204
|
+
},
|
|
205
|
+
"expandable": {
|
|
206
|
+
"title": "Expandable",
|
|
207
|
+
"description": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized.",
|
|
208
|
+
"default": false,
|
|
209
|
+
"type": "boolean",
|
|
210
|
+
"markdownDescription": "Controls whether or not images can be upscaled to fit the bounding box during resize prior to upload. Has no effect if files are not resized."
|
|
211
|
+
},
|
|
212
|
+
"image_size_attributes": {
|
|
213
|
+
"title": "Image Size Attributes",
|
|
214
|
+
"description": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads.",
|
|
215
|
+
"default": true,
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"markdownDescription": "Instructs the editor to save `width` and `height` attributes on the image elements. This can prevent pop-in as a page loads."
|
|
218
|
+
},
|
|
219
|
+
"allowed_sources": {
|
|
220
|
+
"title": "Allowed Sources",
|
|
221
|
+
"description": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from.",
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"markdownDescription": "If you have one or more DAMs connected to your site, you can use this key to list which asset sources can be uploaded to and selected from."
|
|
227
|
+
},
|
|
228
|
+
"prevent_resize_existing_files": {
|
|
229
|
+
"title": "Prevent Resize Existing Files",
|
|
230
|
+
"description": "Enable to skip the image resizing process configured for this input when selecting existing images.",
|
|
231
|
+
"default": false,
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"markdownDescription": "Enable to skip the image resizing process configured for this input when selecting existing images."
|
|
234
|
+
},
|
|
235
|
+
"sizes": {
|
|
236
|
+
"title": "Sizes",
|
|
237
|
+
"description": "Definitions for creating additional images of different sizes when uploading or selecting existing files.",
|
|
238
|
+
"type": "array",
|
|
239
|
+
"items": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"size": {
|
|
243
|
+
"description": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).",
|
|
244
|
+
"type": "string",
|
|
245
|
+
"markdownDescription": "A number suffixed with \"x\" (relative size) or \"w\" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w)."
|
|
246
|
+
},
|
|
247
|
+
"target": {
|
|
248
|
+
"description": "A reference to another input that is given the path to this additional image file.",
|
|
249
|
+
"type": "string",
|
|
250
|
+
"markdownDescription": "A reference to another input that is given the path to this additional image file."
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"required": [
|
|
254
|
+
"size"
|
|
255
|
+
],
|
|
256
|
+
"additionalProperties": false
|
|
257
|
+
},
|
|
258
|
+
"markdownDescription": "Definitions for creating additional images of different sizes when uploading or selecting existing files."
|
|
259
|
+
},
|
|
260
|
+
"type.paths": {
|
|
261
|
+
"title": "Paths",
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"static": {
|
|
265
|
+
"$ref": "#/definitions/paths.static"
|
|
266
|
+
},
|
|
267
|
+
"uploads": {
|
|
268
|
+
"$ref": "#/definitions/paths.uploads"
|
|
269
|
+
},
|
|
270
|
+
"uploads_filename": {
|
|
271
|
+
"$ref": "#/definitions/paths.uploads_filename"
|
|
272
|
+
},
|
|
273
|
+
"dam_uploads": {
|
|
274
|
+
"$ref": "#/definitions/paths.dam_uploads"
|
|
275
|
+
},
|
|
276
|
+
"dam_uploads_filename": {
|
|
277
|
+
"$ref": "#/definitions/paths.dam_uploads_filename"
|
|
278
|
+
},
|
|
279
|
+
"dam_static": {
|
|
280
|
+
"$ref": "#/definitions/paths.dam_static"
|
|
281
|
+
},
|
|
282
|
+
"uploads_use_relative_path": {
|
|
283
|
+
"$ref": "#/definitions/paths.uploads_use_relative_path"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
"paths.static": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"paths.uploads": {
|
|
292
|
+
"default": "uploads",
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"paths.uploads_filename": {
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
"paths.dam_uploads": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
301
|
+
"paths.dam_uploads_filename": {
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
"paths.dam_static": {
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
307
|
+
"paths.uploads_use_relative_path": {
|
|
308
|
+
"type": "boolean"
|
|
309
|
+
},
|
|
310
|
+
"bold": {
|
|
311
|
+
"description": "Enables a control to set selected text to bold.",
|
|
312
|
+
"default": true,
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"markdownDescription": "Enables a control to set selected text to bold."
|
|
315
|
+
},
|
|
316
|
+
"copyformatting": {
|
|
317
|
+
"description": "Enables a control to copy formatting from text to other text. Only applies to formatting from `bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not copy other styles or formatting.",
|
|
318
|
+
"default": false,
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"markdownDescription": "Enables a control to copy formatting from text to other text. Only applies to formatting from `bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not copy other styles or formatting."
|
|
321
|
+
},
|
|
322
|
+
"italic": {
|
|
323
|
+
"description": "Enables a control to italicize selected text.",
|
|
324
|
+
"default": true,
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"markdownDescription": "Enables a control to italicize selected text."
|
|
327
|
+
},
|
|
328
|
+
"link": {
|
|
329
|
+
"description": "Enables a control to create hyperlinks around selected text.",
|
|
330
|
+
"default": true,
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"markdownDescription": "Enables a control to create hyperlinks around selected text."
|
|
333
|
+
},
|
|
334
|
+
"redo": {
|
|
335
|
+
"description": "Enables a control to redo recent edits undone with undo. Redo is always enabled through standard OS-specific keyboard shortcuts.",
|
|
336
|
+
"default": false,
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"markdownDescription": "Enables a control to redo recent edits undone with undo. Redo is always enabled through standard OS-specific keyboard shortcuts."
|
|
339
|
+
},
|
|
340
|
+
"removeformat": {
|
|
341
|
+
"description": "Enables the control to remove formatting from text. Applies to formatting from `bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles or formatting.",
|
|
342
|
+
"default": true,
|
|
343
|
+
"type": "boolean",
|
|
344
|
+
"markdownDescription": "Enables the control to remove formatting from text. Applies to formatting from `bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles or formatting."
|
|
345
|
+
},
|
|
346
|
+
"strike": {
|
|
347
|
+
"description": "Enables a control to strike selected text.",
|
|
348
|
+
"default": false,
|
|
349
|
+
"type": "boolean",
|
|
350
|
+
"markdownDescription": "Enables a control to strike selected text."
|
|
351
|
+
},
|
|
352
|
+
"subscript": {
|
|
353
|
+
"description": "Enables a control to set selected text to subscript.",
|
|
354
|
+
"default": false,
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"markdownDescription": "Enables a control to set selected text to subscript."
|
|
357
|
+
},
|
|
358
|
+
"superscript": {
|
|
359
|
+
"description": "Enables a control to set selected text to superscript.",
|
|
360
|
+
"default": false,
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"markdownDescription": "Enables a control to set selected text to superscript."
|
|
363
|
+
},
|
|
364
|
+
"underline": {
|
|
365
|
+
"description": "Enables a control to underline selected text.",
|
|
366
|
+
"default": false,
|
|
367
|
+
"type": "boolean",
|
|
368
|
+
"markdownDescription": "Enables a control to underline selected text."
|
|
369
|
+
},
|
|
370
|
+
"undo": {
|
|
371
|
+
"description": "Enables a control to undo recent edits. Undo is always enabled through standard OS-specific keyboard shortcuts.",
|
|
372
|
+
"default": false,
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"markdownDescription": "Enables a control to undo recent edits. Undo is always enabled through standard OS-specific keyboard shortcuts."
|
|
375
|
+
},
|
|
376
|
+
"remove_custom_markup": {
|
|
377
|
+
"description": "Defines if the content should be stripped of \"custom markup\". It is recommended to have this option turned on once you have all of your rich text options configured. Having `allow_custom_markup` turned on disables this option. Defaults to false.",
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"markdownDescription": "Defines if the content should be stripped of \"custom markup\". It is recommended to have this option turned on once you have all of your rich text options configured. Having `allow_custom_markup` turned on disables this option. Defaults to false."
|
|
380
|
+
},
|
|
381
|
+
"allow_custom_markup": {
|
|
382
|
+
"description": "Defines if the content can contain \"custom markup\". It is not recommended to have this option turned on. Defaults to true for non-content editable regions, false otherwise.",
|
|
383
|
+
"type": "boolean",
|
|
384
|
+
"markdownDescription": "Defines if the content can contain \"custom markup\". It is not recommended to have this option turned on. Defaults to true for non-content editable regions, false otherwise."
|
|
385
|
+
},
|
|
386
|
+
"blockquote": {
|
|
387
|
+
"description": "Enables a control to wrap blocks of text in block quotes.",
|
|
388
|
+
"default": true,
|
|
389
|
+
"type": "boolean",
|
|
390
|
+
"markdownDescription": "Enables a control to wrap blocks of text in block quotes."
|
|
391
|
+
},
|
|
392
|
+
"bulletedlist": {
|
|
393
|
+
"description": "Enables a control to insert an unordered list, or to convert selected blocks of text into a unordered list.",
|
|
394
|
+
"default": true,
|
|
395
|
+
"type": "boolean",
|
|
396
|
+
"markdownDescription": "Enables a control to insert an unordered list, or to convert selected blocks of text into a unordered list."
|
|
397
|
+
},
|
|
398
|
+
"center": {
|
|
399
|
+
"description": "Enables a control to center align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input.",
|
|
400
|
+
"type": "string",
|
|
401
|
+
"markdownDescription": "Enables a control to center align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input."
|
|
402
|
+
},
|
|
403
|
+
"code_inline": {
|
|
404
|
+
"description": "Enables a control to create an inline code element, containing any selected text.",
|
|
405
|
+
"default": false,
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"markdownDescription": "Enables a control to create an inline code element, containing any selected text."
|
|
408
|
+
},
|
|
409
|
+
"code_block": {
|
|
410
|
+
"description": "Enables a control to insert a code block.",
|
|
411
|
+
"default": false,
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"markdownDescription": "Enables a control to insert a code block."
|
|
414
|
+
},
|
|
415
|
+
"code": {
|
|
416
|
+
"description": "Enables both block and inline code controls: `code_block` and `code_inline`.",
|
|
417
|
+
"default": false,
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"markdownDescription": "Enables both block and inline code controls: `code_block` and `code_inline`."
|
|
420
|
+
},
|
|
421
|
+
"embed": {
|
|
422
|
+
"description": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other media. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags. Embeds containing script tags are not loaded in the editor.",
|
|
423
|
+
"default": false,
|
|
424
|
+
"type": "boolean",
|
|
425
|
+
"markdownDescription": "Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other media. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags. Embeds containing script tags are not loaded in the editor."
|
|
426
|
+
},
|
|
427
|
+
"format": {
|
|
428
|
+
"description": "Enables a drop down menu for structured text. Has options for \"p\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\". Set as space separated options (e.g. \"p h1 h2\").",
|
|
429
|
+
"default": "p h1 h2 h3 h4 h5 h6",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"markdownDescription": "Enables a drop down menu for structured text. Has options for \"p\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\". Set as space separated options (e.g. \"p h1 h2\")."
|
|
432
|
+
},
|
|
433
|
+
"horizontalrule": {
|
|
434
|
+
"description": "Enables a control to insert a horizontal rule.",
|
|
435
|
+
"default": false,
|
|
436
|
+
"type": "boolean",
|
|
437
|
+
"markdownDescription": "Enables a control to insert a horizontal rule."
|
|
438
|
+
},
|
|
439
|
+
"image": {
|
|
440
|
+
"description": "Enables a control to insert an image. The image can be uploaded, existing or an external link.",
|
|
441
|
+
"default": true,
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"markdownDescription": "Enables a control to insert an image. The image can be uploaded, existing or an external link."
|
|
444
|
+
},
|
|
445
|
+
"indent": {
|
|
446
|
+
"description": "Enables a control to increase indentation for numbered and unordered lists.",
|
|
447
|
+
"default": false,
|
|
448
|
+
"type": "boolean",
|
|
449
|
+
"markdownDescription": "Enables a control to increase indentation for numbered and unordered lists."
|
|
450
|
+
},
|
|
451
|
+
"justify": {
|
|
452
|
+
"description": "Enables a control to justify text by toggling a class name for a block of text. The value is the class name the editor should add to justify the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input.",
|
|
453
|
+
"type": "string",
|
|
454
|
+
"markdownDescription": "Enables a control to justify text by toggling a class name for a block of text. The value is the class name the editor should add to justify the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input."
|
|
455
|
+
},
|
|
456
|
+
"left": {
|
|
457
|
+
"description": "Enables a control to left align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input.",
|
|
458
|
+
"type": "string",
|
|
459
|
+
"markdownDescription": "Enables a control to left align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input."
|
|
460
|
+
},
|
|
461
|
+
"numberedlist": {
|
|
462
|
+
"description": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list.",
|
|
463
|
+
"default": true,
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"markdownDescription": "Enables a control to insert a numbered list, or to convert selected blocks of text into a numbered list."
|
|
466
|
+
},
|
|
467
|
+
"outdent": {
|
|
468
|
+
"description": "Enables a control to reduce indentation for numbered and unordered lists.",
|
|
469
|
+
"default": false,
|
|
470
|
+
"type": "boolean",
|
|
471
|
+
"markdownDescription": "Enables a control to reduce indentation for numbered and unordered lists."
|
|
472
|
+
},
|
|
473
|
+
"right": {
|
|
474
|
+
"description": "Enables a control to right align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input.",
|
|
475
|
+
"type": "string",
|
|
476
|
+
"markdownDescription": "Enables a control to right align text by toggling a class name for a block of text. The value is the class name the editor should add to align the text. The styles for this class need to be listed in the `styles` file to take effect outside of the input."
|
|
477
|
+
},
|
|
478
|
+
"snippet": {
|
|
479
|
+
"description": "Enables a control to insert snippets, if any are available.",
|
|
480
|
+
"default": true,
|
|
481
|
+
"type": "boolean",
|
|
482
|
+
"markdownDescription": "Enables a control to insert snippets, if any are available."
|
|
483
|
+
},
|
|
484
|
+
"styles": {
|
|
485
|
+
"description": "Enables a drop down menu for editors to style selected text or blocks or text. Styles are the combination of an element and class name. The value for this option is the path (either source or build output) to the CSS file containing the styles.",
|
|
486
|
+
"type": "string",
|
|
487
|
+
"markdownDescription": "Enables a drop down menu for editors to style selected text or blocks or text. Styles are the combination of an element and class name. The value for this option is the path (either source or build output) to the CSS file containing the styles."
|
|
488
|
+
},
|
|
489
|
+
"table": {
|
|
490
|
+
"description": "Enables a control to insert a table. Further options for table cells are available in the context menu for cells within the editor.",
|
|
491
|
+
"default": false,
|
|
492
|
+
"type": "boolean",
|
|
493
|
+
"markdownDescription": "Enables a control to insert a table. Further options for table cells are available in the context menu for cells within the editor."
|
|
494
|
+
},
|
|
495
|
+
"join_above": {
|
|
496
|
+
"description": "Enables a control to join the selected block with the block above it.",
|
|
497
|
+
"default": false,
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"markdownDescription": "Enables a control to join the selected block with the block above it."
|
|
500
|
+
},
|
|
501
|
+
"join_below": {
|
|
502
|
+
"description": "Enables a control to join the selected block with the block below it.",
|
|
503
|
+
"default": false,
|
|
504
|
+
"type": "boolean",
|
|
505
|
+
"markdownDescription": "Enables a control to join the selected block with the block below it."
|
|
506
|
+
},
|
|
507
|
+
"BlockEditable": {
|
|
508
|
+
"title": "Block Editable",
|
|
509
|
+
"description": "Contains input options for block Editable Regions.",
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"mime_type": {
|
|
513
|
+
"$ref": "#/definitions/mime_type"
|
|
514
|
+
},
|
|
515
|
+
"resize_style": {
|
|
516
|
+
"$ref": "#/definitions/resize_style"
|
|
517
|
+
},
|
|
518
|
+
"width": {
|
|
519
|
+
"$ref": "#/definitions/width"
|
|
520
|
+
},
|
|
521
|
+
"height": {
|
|
522
|
+
"$ref": "#/definitions/height"
|
|
523
|
+
},
|
|
524
|
+
"expandable": {
|
|
525
|
+
"$ref": "#/definitions/expandable"
|
|
526
|
+
},
|
|
527
|
+
"image_size_attributes": {
|
|
528
|
+
"$ref": "#/definitions/image_size_attributes"
|
|
529
|
+
},
|
|
530
|
+
"allowed_sources": {
|
|
531
|
+
"$ref": "#/definitions/allowed_sources"
|
|
532
|
+
},
|
|
533
|
+
"prevent_resize_existing_files": {
|
|
534
|
+
"$ref": "#/definitions/prevent_resize_existing_files"
|
|
535
|
+
},
|
|
536
|
+
"sizes": {
|
|
537
|
+
"$ref": "#/definitions/sizes"
|
|
538
|
+
},
|
|
539
|
+
"paths": {
|
|
540
|
+
"allOf": [
|
|
541
|
+
{
|
|
542
|
+
"$ref": "#/definitions/type.paths"
|
|
543
|
+
}
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
"bold": {
|
|
547
|
+
"$ref": "#/definitions/bold"
|
|
548
|
+
},
|
|
549
|
+
"copyformatting": {
|
|
550
|
+
"$ref": "#/definitions/copyformatting"
|
|
551
|
+
},
|
|
552
|
+
"italic": {
|
|
553
|
+
"$ref": "#/definitions/italic"
|
|
554
|
+
},
|
|
555
|
+
"link": {
|
|
556
|
+
"$ref": "#/definitions/link"
|
|
557
|
+
},
|
|
558
|
+
"redo": {
|
|
559
|
+
"$ref": "#/definitions/redo"
|
|
560
|
+
},
|
|
561
|
+
"removeformat": {
|
|
562
|
+
"$ref": "#/definitions/removeformat"
|
|
563
|
+
},
|
|
564
|
+
"strike": {
|
|
565
|
+
"$ref": "#/definitions/strike"
|
|
566
|
+
},
|
|
567
|
+
"subscript": {
|
|
568
|
+
"$ref": "#/definitions/subscript"
|
|
569
|
+
},
|
|
570
|
+
"superscript": {
|
|
571
|
+
"$ref": "#/definitions/superscript"
|
|
572
|
+
},
|
|
573
|
+
"underline": {
|
|
574
|
+
"$ref": "#/definitions/underline"
|
|
575
|
+
},
|
|
576
|
+
"undo": {
|
|
577
|
+
"$ref": "#/definitions/undo"
|
|
578
|
+
},
|
|
579
|
+
"remove_custom_markup": {
|
|
580
|
+
"$ref": "#/definitions/remove_custom_markup"
|
|
581
|
+
},
|
|
582
|
+
"allow_custom_markup": {
|
|
583
|
+
"$ref": "#/definitions/allow_custom_markup"
|
|
584
|
+
},
|
|
585
|
+
"blockquote": {
|
|
586
|
+
"$ref": "#/definitions/blockquote"
|
|
587
|
+
},
|
|
588
|
+
"bulletedlist": {
|
|
589
|
+
"$ref": "#/definitions/bulletedlist"
|
|
590
|
+
},
|
|
591
|
+
"center": {
|
|
592
|
+
"$ref": "#/definitions/center"
|
|
593
|
+
},
|
|
594
|
+
"code_inline": {
|
|
595
|
+
"$ref": "#/definitions/code_inline"
|
|
596
|
+
},
|
|
597
|
+
"code_block": {
|
|
598
|
+
"$ref": "#/definitions/code_block"
|
|
599
|
+
},
|
|
600
|
+
"code": {
|
|
601
|
+
"$ref": "#/definitions/code"
|
|
602
|
+
},
|
|
603
|
+
"embed": {
|
|
604
|
+
"$ref": "#/definitions/embed"
|
|
605
|
+
},
|
|
606
|
+
"format": {
|
|
607
|
+
"$ref": "#/definitions/format"
|
|
608
|
+
},
|
|
609
|
+
"horizontalrule": {
|
|
610
|
+
"$ref": "#/definitions/horizontalrule"
|
|
611
|
+
},
|
|
612
|
+
"image": {
|
|
613
|
+
"$ref": "#/definitions/image"
|
|
614
|
+
},
|
|
615
|
+
"indent": {
|
|
616
|
+
"$ref": "#/definitions/indent"
|
|
617
|
+
},
|
|
618
|
+
"justify": {
|
|
619
|
+
"$ref": "#/definitions/justify"
|
|
620
|
+
},
|
|
621
|
+
"left": {
|
|
622
|
+
"$ref": "#/definitions/left"
|
|
623
|
+
},
|
|
624
|
+
"numberedlist": {
|
|
625
|
+
"$ref": "#/definitions/numberedlist"
|
|
626
|
+
},
|
|
627
|
+
"outdent": {
|
|
628
|
+
"$ref": "#/definitions/outdent"
|
|
629
|
+
},
|
|
630
|
+
"right": {
|
|
631
|
+
"$ref": "#/definitions/right"
|
|
632
|
+
},
|
|
633
|
+
"snippet": {
|
|
634
|
+
"$ref": "#/definitions/snippet"
|
|
635
|
+
},
|
|
636
|
+
"styles": {
|
|
637
|
+
"$ref": "#/definitions/styles"
|
|
638
|
+
},
|
|
639
|
+
"table": {
|
|
640
|
+
"$ref": "#/definitions/table"
|
|
641
|
+
},
|
|
642
|
+
"join_above": {
|
|
643
|
+
"$ref": "#/definitions/join_above"
|
|
644
|
+
},
|
|
645
|
+
"join_below": {
|
|
646
|
+
"$ref": "#/definitions/join_below"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"additionalProperties": false,
|
|
650
|
+
"markdownDescription": "Contains input options for block Editable Regions."
|
|
651
|
+
},
|
|
652
|
+
"LinkEditable": {
|
|
653
|
+
"title": "Link Editable",
|
|
654
|
+
"description": "Contains input options for link Editable Regions.",
|
|
655
|
+
"type": "object",
|
|
656
|
+
"properties": {
|
|
657
|
+
"paths": {
|
|
658
|
+
"allOf": [
|
|
659
|
+
{
|
|
660
|
+
"$ref": "#/definitions/type.paths"
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"additionalProperties": false,
|
|
666
|
+
"markdownDescription": "Contains input options for link Editable Regions."
|
|
667
|
+
},
|
|
668
|
+
"ImageEditable": {
|
|
669
|
+
"title": "Image Editable",
|
|
670
|
+
"description": "Contains input options for image Editable Regions.",
|
|
671
|
+
"type": "object",
|
|
672
|
+
"properties": {
|
|
673
|
+
"mime_type": {
|
|
674
|
+
"$ref": "#/definitions/mime_type"
|
|
675
|
+
},
|
|
676
|
+
"resize_style": {
|
|
677
|
+
"$ref": "#/definitions/resize_style"
|
|
678
|
+
},
|
|
679
|
+
"width": {
|
|
680
|
+
"$ref": "#/definitions/width"
|
|
681
|
+
},
|
|
682
|
+
"height": {
|
|
683
|
+
"$ref": "#/definitions/height"
|
|
684
|
+
},
|
|
685
|
+
"expandable": {
|
|
686
|
+
"$ref": "#/definitions/expandable"
|
|
687
|
+
},
|
|
688
|
+
"image_size_attributes": {
|
|
689
|
+
"$ref": "#/definitions/image_size_attributes"
|
|
690
|
+
},
|
|
691
|
+
"allowed_sources": {
|
|
692
|
+
"$ref": "#/definitions/allowed_sources"
|
|
693
|
+
},
|
|
694
|
+
"prevent_resize_existing_files": {
|
|
695
|
+
"$ref": "#/definitions/prevent_resize_existing_files"
|
|
696
|
+
},
|
|
697
|
+
"sizes": {
|
|
698
|
+
"$ref": "#/definitions/sizes"
|
|
699
|
+
},
|
|
700
|
+
"paths": {
|
|
701
|
+
"allOf": [
|
|
702
|
+
{
|
|
703
|
+
"$ref": "#/definitions/type.paths"
|
|
704
|
+
}
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"additionalProperties": false,
|
|
709
|
+
"markdownDescription": "Contains input options for image Editable Regions."
|
|
710
|
+
},
|
|
711
|
+
"TextEditable": {
|
|
712
|
+
"title": "Text Editable",
|
|
713
|
+
"description": "Contains input options for text Editable Regions.",
|
|
714
|
+
"type": "object",
|
|
715
|
+
"properties": {
|
|
716
|
+
"paths": {
|
|
717
|
+
"allOf": [
|
|
718
|
+
{
|
|
719
|
+
"$ref": "#/definitions/type.paths"
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
"bold": {
|
|
724
|
+
"$ref": "#/definitions/bold"
|
|
725
|
+
},
|
|
726
|
+
"copyformatting": {
|
|
727
|
+
"$ref": "#/definitions/copyformatting"
|
|
728
|
+
},
|
|
729
|
+
"italic": {
|
|
730
|
+
"$ref": "#/definitions/italic"
|
|
731
|
+
},
|
|
732
|
+
"link": {
|
|
733
|
+
"$ref": "#/definitions/link"
|
|
734
|
+
},
|
|
735
|
+
"redo": {
|
|
736
|
+
"$ref": "#/definitions/redo"
|
|
737
|
+
},
|
|
738
|
+
"removeformat": {
|
|
739
|
+
"$ref": "#/definitions/removeformat"
|
|
740
|
+
},
|
|
741
|
+
"strike": {
|
|
742
|
+
"$ref": "#/definitions/strike"
|
|
743
|
+
},
|
|
744
|
+
"subscript": {
|
|
745
|
+
"$ref": "#/definitions/subscript"
|
|
746
|
+
},
|
|
747
|
+
"superscript": {
|
|
748
|
+
"$ref": "#/definitions/superscript"
|
|
749
|
+
},
|
|
750
|
+
"underline": {
|
|
751
|
+
"$ref": "#/definitions/underline"
|
|
752
|
+
},
|
|
753
|
+
"undo": {
|
|
754
|
+
"$ref": "#/definitions/undo"
|
|
755
|
+
},
|
|
756
|
+
"remove_custom_markup": {
|
|
757
|
+
"$ref": "#/definitions/remove_custom_markup"
|
|
758
|
+
},
|
|
759
|
+
"allow_custom_markup": {
|
|
760
|
+
"$ref": "#/definitions/allow_custom_markup"
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"additionalProperties": false,
|
|
764
|
+
"markdownDescription": "Contains input options for text Editable Regions."
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|