mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
@@ -138,7 +138,7 @@ export const createEditor = (): Editor => {
|
|||||||
getFragment: () => {
|
getFragment: () => {
|
||||||
const { selection } = editor
|
const { selection } = editor
|
||||||
|
|
||||||
if (selection && Range.isExpanded(selection)) {
|
if (selection) {
|
||||||
return Node.fragment(editor, selection)
|
return Node.fragment(editor, selection)
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
|
Reference in New Issue
Block a user