Class: HashtagNode
@lexical/hashtag.HashtagNode
Hierarchy
↳
HashtagNode
Constructors
constructor
• new HashtagNode(text
, key?
)
Parameters
Name | Type |
---|---|
text | string |
key? | string |
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:29
Methods
canInsertTextBefore
▸ canInsertTextBefore(): boolean
Returns
boolean
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:46
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:33
exportJSON
▸ exportJSON(): SerializedTextNode
Returns
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:39
isTextEntity
▸ isTextEntity(): true
Returns
true
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:50
clone
▸ Static
clone(node
): HashtagNode
Parameters
Name | Type |
---|---|
node | HashtagNode |
Returns
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:25
getType
▸ Static
getType(): string
Returns
string
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:21