mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-19 13:41:19 +02:00
fix: ts (#3301)
This commit is contained in:
committed by
Ian Storm Taylor
parent
26a91f805a
commit
ed40c08b80
@@ -86,7 +86,7 @@ const wrapLink = (editor, url) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { selection } = editor
|
const { selection } = editor
|
||||||
const isCollapsed = Range.isCollapsed(selection)
|
const isCollapsed = selection && Range.isCollapsed(selection)
|
||||||
const link = {
|
const link = {
|
||||||
type: 'link',
|
type: 'link',
|
||||||
url,
|
url,
|
||||||
|
Reference in New Issue
Block a user