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