A placeholder definition that can be inserted into the editor.
Placeholders render as non-editable inline chips inside the rich text content and are serialised as {{key}} tokens in the HTML output so a downstream template engine can resolve them.
{{key}}
const placeholders: RichTextPlaceholder[] = [ { key: 'firstName', label: 'First Name', category: 'Contact' }, { key: 'companyName', label: 'Company', category: 'Account' },]; Copy
const placeholders: RichTextPlaceholder[] = [ { key: 'firstName', label: 'First Name', category: 'Contact' }, { key: 'companyName', label: 'Company', category: 'Account' },];
Optional
Readonly
Optional grouping category for the placeholder picker.
Unique token key, e.g. 'firstName'.
'firstName'
Human-readable label shown inside the chip, e.g. 'First Name'.
'First Name'
A placeholder definition that can be inserted into the editor.
Placeholders render as non-editable inline chips inside the rich text content and are serialised as
{{key}}tokens in the HTML output so a downstream template engine can resolve them.Example