Class: FrontmatterNode
Represents the frontmatter of the markdown document. Use "$createFrontmatterNode" to construct one.
Extends
DecoratorNode
<JSX.Element
>
Constructors
new FrontmatterNode()
new FrontmatterNode(
code
,key
?):FrontmatterNode
Parameters
Parameter | Type |
---|---|
code | string |
key ? | string |
Returns
Overrides
DecoratorNode<JSX.Element>.constructor
Methods
createDOM()
createDOM(
_config
):HTMLDivElement
Parameters
Parameter | Type |
---|---|
_config | EditorConfig |
Returns
HTMLDivElement
Overrides
DecoratorNode.createDOM
decorate()
decorate(
editor
):Element
Parameters
Parameter | Type |
---|---|
editor | LexicalEditor |
Returns
Element
Overrides
DecoratorNode.decorate
exportJSON()
exportJSON():
SerializedFrontmatterNode
Returns
Overrides
DecoratorNode.exportJSON
getYaml()
getYaml():
string
Returns
string
isKeyboardSelectable()
isKeyboardSelectable():
boolean
Returns
boolean
Overrides
DecoratorNode.isKeyboardSelectable
setYaml()
setYaml(
yaml
):void
Parameters
Parameter | Type |
---|---|
yaml | string |
Returns
void
updateDOM()
updateDOM():
false
Returns
false
Overrides
DecoratorNode.updateDOM
clone()
static
clone(node
):FrontmatterNode
Parameters
Parameter | Type |
---|---|
node | FrontmatterNode |
Returns
Overrides
DecoratorNode.clone
getType()
static
getType():string
Returns
string
Overrides
DecoratorNode.getType
importJSON()
static
importJSON(serializedNode
):FrontmatterNode
Parameters
Parameter | Type |
---|---|
serializedNode | SerializedFrontmatterNode |
Returns
Overrides
DecoratorNode.importJSON
Properties
Property | Type |
---|---|
__yaml | string |