An object representing a fragment of text in the rich text editor.
A rich text node contains the actual text as well as the styling applied to that text, referred to as 'marks'.
Property | Type | Description |
---|---|---|
text* | string | The actual text content. |
bold | boolean | Whether the text is bolded. |
italic | boolean | Whether the text is italisized. |
strikethrough | boolean | Whether the text is struck through. |
underline | boolean | Whether the text is underlined. |
code | boolean | Whether the text is code style. |
color | ContentColor | The text color. |
backgroundColor | ContentColor | The text's background color. |