Skip to main content

Class: HashtagNode

lexical-hashtag/src.HashtagNode

Hierarchy

Constructors

constructor

new HashtagNode(text, key?)

Parameters

NameType
textstring
key?string

Overrides

TextNode.constructor

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:29

Methods

canInsertTextBefore

canInsertTextBefore(): boolean

Returns

boolean

Overrides

TextNode.canInsertTextBefore

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:55


createDOM

createDOM(config): HTMLElement

Parameters

NameType
configEditorConfig

Returns

HTMLElement

Overrides

TextNode.createDOM

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:33


exportJSON

exportJSON(): SerializedTextNode

Returns

SerializedTextNode

Overrides

TextNode.exportJSON

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:48


isTextEntity

isTextEntity(): true

Returns

true

Overrides

TextNode.isTextEntity

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:59


clone

Static clone(node): HashtagNode

Parameters

NameType
nodeHashtagNode

Returns

HashtagNode

Overrides

TextNode.clone

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:25


getType

Static getType(): string

Returns

string

Overrides

TextNode.getType

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:21


importJSON

Static importJSON(serializedNode): HashtagNode

Parameters

NameType
serializedNodeSerializedTextNode

Returns

HashtagNode

Overrides

TextNode.importJSON

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:39