@seafile/seafile-editor 0.3.88 → 0.3.89
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.
|
@@ -404,9 +404,15 @@ var withMarkdownShortcut = function withMarkdownShortcut(editor) {
|
|
|
404
404
|
break;
|
|
405
405
|
|
|
406
406
|
case 'delete_fragment':
|
|
407
|
-
|
|
407
|
+
var _Range$edges = Range.edges(editor.selection),
|
|
408
|
+
_Range$edges2 = _slicedToArray(_Range$edges, 2),
|
|
409
|
+
end = _Range$edges2[1];
|
|
410
|
+
|
|
411
|
+
var voids = Editor.match(editor, end.path, 'void');
|
|
412
|
+
var endVoid = voids ? voids : null; // do not unhange selection when end point is a void node when delete fragment,
|
|
413
|
+
|
|
408
414
|
Editor.delete(editor, {
|
|
409
|
-
hanging: true
|
|
415
|
+
hanging: endVoid ? true : false
|
|
410
416
|
});
|
|
411
417
|
return;
|
|
412
418
|
|