@seafile/sdoc-editor 0.1.86 → 0.1.87
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.
|
@@ -445,7 +445,7 @@ export var isRangeAcrossBlocks = function isRangeAcrossBlocks(editor) {
|
|
|
445
445
|
};
|
|
446
446
|
export var isAncestorEmpty = function isAncestorEmpty(editor, node) {
|
|
447
447
|
return !Node.string(node) && !node.children.some(function (n) {
|
|
448
|
-
return Editor.isInline(editor,
|
|
448
|
+
return Editor.isInline(editor, n);
|
|
449
449
|
});
|
|
450
450
|
};
|
|
451
451
|
export var isBlockAboveEmpty = function isBlockAboveEmpty(editor) {
|