Description
Is your feature request related to a problem? Please describe.
We would like to enforce a certain document structure in certain rich text fields.
Describe the solution you'd like
I propose to have the ability for certain rich text fields to be primed with a default structure.
We could define this structure as html with some extra attributes (i.e. a mandatory
attribute).
The widget start with an empty template when first created. The user is prevented from deleting elements with the mandatory
attribute.
We could start with a template such as:
<h1 mandatory placelholder="Key issue 1"/>
<h1 mandatory placelholder="Key issue 2"/>
<h1 mandatory placelholder="Key issue 3"/>
We could also apply different styling to these attributes, for example we could display placeholder text when they are empty.
Describe alternatives you've considered
We considered separate fields for each template component, but that is too cumbersome and not user-friendly.
Additional context
Similar to: https://www.slatejs.org/examples/forced-layout