Skip to main content

Class: HashtagNode

@lexical/hashtag.HashtagNode

Hierarchy

Constructors

constructor

new HashtagNode(text, key?)

Parameters

NameType
textstring
key?string

Overrides

TextNode.constructor

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:24

Methods

canInsertTextBefore

canInsertTextBefore(): boolean

Returns

boolean

Overrides

TextNode.canInsertTextBefore

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:35


createDOM

createDOM(config): HTMLElement

Parameters

NameType
configEditorConfig

Returns

HTMLElement

Overrides

TextNode.createDOM

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:29


isTextEntity

isTextEntity(): true

Returns

true

Overrides

TextNode.isTextEntity

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:39


clone

Static clone(node): HashtagNode

Parameters

NameType
nodeHashtagNode

Returns

HashtagNode

Overrides

TextNode.clone

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:20


getType

Static getType(): string

Returns

string

Overrides

TextNode.getType

Defined in

lexical-hashtag/src/LexicalHashtagNode.ts:16