Class: HashtagNode
lexical-hashtag/src.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:55
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:48
isTextEntity
▸ isTextEntity(): true
Returns
true
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:59
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
importJSON
▸ Static
importJSON(serializedNode
): HashtagNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedTextNode |
Returns
Overrides
Defined in
lexical-hashtag/src/LexicalHashtagNode.ts:39