prosekit/extensions/text-align
Interfaces
Section titled “Interfaces”TextAlignOptions
Section titled “TextAlignOptions”Properties
Section titled “Properties”-
types:NodeName[] -
The names of node to add the attribute to.
Example
Section titled “Example”["paragraph", "heading"]
-
default?:string -
The default value for the attribute.
Default
Section titled “Default”"left"
Functions
Section titled “Functions”defineTextAlign()
Section titled “defineTextAlign()”-
function defineTextAlign<NodeName>(options:TextAlignOptions<NodeName>):TextAlignExtension<NodeName> -
Adds a
textAlignattribute to the specified nodes. This will be rendered as a CSStext-alignstyle.