prosekit/extensions/text-align
-
default?: string
-
The default value for the attribute.
Default:
"left"
-
types: NodeName[]
-
The names of node to add the attribute to.
Example
["paragraph", "heading"]
function defineTextAlign<NodeName extends string>(options: TextAlignOptions<NodeName>): TextAlignExtension<NodeName>
Adds a textAlign
attribute to the specified nodes. This will be rendered as a CSS text-align
style.