Rate this page:
The textColor
mark sets <style="color: red">colour styling. This mark applies to text
nodes.
1 2{ "type": "text", "text": "Hello world", "marks": [ { "type": "textColor", "attrs": { "color": "#97a0af" } } ] }
The textColor
cannot be combined with the following marks:
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "textColor" |
attrs | ✔ | object | |
attrs.color | ✔ | string | A color defined in HTML hexadecimal format, for example #daa520. |
Rate this page: