1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 21:51:51 +02:00

Allow void nodes to be copied. Fixes #3665 (#3716)

This commit is contained in:
Jamie Talbot
2020-06-03 12:34:28 -04:00
committed by GitHub
parent 44675c2080
commit 7c8eb8e80b

View File

@@ -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 []