slate-react 0.133.8 → 0.133.9-20261013143735
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +9 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +9 -0
- package/dist/slate-react.min.js +1 -1
- package/dist/utils/move-range.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -2703,6 +2703,15 @@ const getWholeTopLevelBlockPaths = (editor, range) => {
|
|
|
2703
2703
|
const getMovableRange = (editor, range) => getWholeTopLevelBlockPaths(editor, range) ? range : Editor.unhangRange(editor, range);
|
|
2704
2704
|
const deleteMovedRange = (editor, range) => {
|
|
2705
2705
|
if (Range.isCollapsed(range)) {
|
|
2706
|
+
const voidEntry = Editor.void(editor, {
|
|
2707
|
+
at: range
|
|
2708
|
+
});
|
|
2709
|
+
if (voidEntry) {
|
|
2710
|
+
Transforms.removeNodes(editor, {
|
|
2711
|
+
at: voidEntry[1],
|
|
2712
|
+
voids: true
|
|
2713
|
+
});
|
|
2714
|
+
}
|
|
2706
2715
|
return;
|
|
2707
2716
|
}
|
|
2708
2717
|
const blockPaths = getWholeTopLevelBlockPaths(editor, range);
|