Class: AutoLinkNode
@lexical/link.AutoLinkNode
Hierarchy
↳
AutoLinkNode
Constructors
constructor
• new AutoLinkNode(url
, attributes?
, key?
)
Parameters
Name | Type |
---|---|
url | string |
attributes | Object |
attributes.rel? | null | string |
attributes.target? | null | string |
key? | string |
Inherited from
Defined in
lexical-link/src/index.ts:65
Methods
canBeEmpty
▸ canBeEmpty(): false
Returns
false
Inherited from
Defined in
lexical-link/src/index.ts:204
canInsertTextAfter
▸ canInsertTextAfter(): false
Returns
false
Inherited from
Defined in
lexical-link/src/index.ts:200
canInsertTextBefore
▸ canInsertTextBefore(): false
Returns
false
Inherited from
Defined in
lexical-link/src/index.ts:196
exportJSON
▸ exportJSON(): SerializedAutoLinkNode
Returns
Overrides
Defined in
lexical-link/src/index.ts:298
extractWithChild
▸ extractWithChild(child
, selection
, destination
): boolean
Parameters
Name | Type |
---|---|
child | LexicalNode |
selection | RangeSelection | NodeSelection | GridSelection |
destination | "html" | "clone" |
Returns
boolean
Inherited from
Defined in
lexical-link/src/index.ts:212
getRel
▸ getRel(): null
| string
Returns
null
| string
Inherited from
Defined in
lexical-link/src/index.ts:174
getTarget
▸ getTarget(): null
| string
Returns
null
| string
Inherited from
Defined in
lexical-link/src/index.ts:165
getURL
▸ getURL(): string
Returns
string
Inherited from
Defined in
lexical-link/src/index.ts:156
insertNewAfter
▸ insertNewAfter(selection
): null
| ElementNode
Parameters
Name | Type |
---|---|
selection | RangeSelection |
Returns
null
| ElementNode
Overrides
Defined in
lexical-link/src/index.ts:306
isInline
▸ isInline(): true
Returns
true
Inherited from
Defined in
lexical-link/src/index.ts:208
setRel
▸ setRel(rel
): void
Parameters
Name | Type |
---|---|
rel | null | string |
Returns
void
Inherited from
Defined in
lexical-link/src/index.ts:178
setTarget
▸ setTarget(target
): void
Parameters
Name | Type |
---|---|
target | null | string |
Returns
void
Inherited from
Defined in
lexical-link/src/index.ts:169
setURL
▸ setURL(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
Inherited from
Defined in
lexical-link/src/index.ts:160
clone
▸ Static
clone(node
): AutoLinkNode
Parameters
Name | Type |
---|---|
node | AutoLinkNode |
Returns
Overrides
Defined in
lexical-link/src/index.ts:274
getType
▸ Static
getType(): string
Returns
string
Overrides
Defined in
lexical-link/src/index.ts:270
importDOM
▸ Static
importDOM(): null
Returns
null
Overrides
Defined in
lexical-link/src/index.ts:293
importJSON
▸ Static
importJSON(serializedNode
): AutoLinkNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedAutoLinkNode |
Returns
Overrides
Defined in
lexical-link/src/index.ts:282