Reference Fields
Rich Content (JSON)~
The Rich Content field empowers editors to create dynamic and visually appealing content, which is then stored in the database as JSON.
Note:
This field is identical to the Rich Content field, with the only distinction being that it stores its value as JSON in the database.
Warning:
The tilde (~) denotes that the field is available in developer preview only.
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-textarea - Type:
json - Reference ID:
str-textarea|json
The settings above map into the editor.attributes object inside the JSON definition.
{
...
"editor": {
"name": "str-textarea",
"type": "json",
"propertyName": "...",
...
"attributes": {
"menuButtons": [...] //heading1|heading2|bold|etc...
"placeholderDocument": "..."//heading|paragraph|etc...
}
},
...
}Live preview
Note:
This field does not have any default Strife Web Components. Custom live preview implementations are fully supported.
Note:
For more information on live preview and Strife Web Components, please refer to the Live preview documentation.