To add custom blocks to the field, follow this short video:
Structured Text content is stored as a JSON object. We chose unist as our base-format to benefit from its ecosystem of utilities for working with compliant syntax trees.
dast format clearly specifies:
which nodes are usable within the document;
for each node which are the possible
children that it can contain;
any additional attribute that characterise each node.
Take a look at the DatoCMS Abstract Syntax Tree specs to learn all the details
Structured Text allows hyperlinking DatoCMS records in the flow of text. This allows the following scenarios:
Using custom link functions, like React Router links, towards a DatoCMS record.
Rendering a widget such as an image gallery, a product description box, a sign up form, an annotation window or basically anything else.
The following example demonstrates an hyperlinked record and an inline record:
Similarly to Modular Content fields, you can also embed block records into Structured Text. Here's demonstration:
Just like with the Modular content field, when a record is deleted, the blocks contained inside its Structured Text fields are also deleted, without leaving orphans in the process.