Understand the Editable Content Model
mainEditable uses a typed vocabulary to define pages and shared site content. Documents are structured as graphs of nodes identified by id. Each node has a type and type-specific properties.
Key Naming Conventions
content: The string payload of text properties.body: Holds authored nested content.items: Holds repeated structured children.label,title,description,meta: Text properties with semantic meaning.
Data Structures
- Text Property: Contains a
contentstring, plusmarksandannotationsarrays that reference separate nodes by ID. - Node Array: Contains an array of
nodes(ordered child node IDs), plusmarksandannotationsarrays.