1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 21:21:21 +02:00
This commit is contained in:
Ziad Beyens
2019-12-11 23:18:38 +01:00
committed by Ian Storm Taylor
parent 26a91f805a
commit ed40c08b80

View File

@@ -86,7 +86,7 @@ const wrapLink = (editor, url) => {
}
const { selection } = editor
const isCollapsed = Range.isCollapsed(selection)
const isCollapsed = selection && Range.isCollapsed(selection)
const link = {
type: 'link',
url,