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