This commit is contained in:
Vanessa 2024-03-30 18:18:41 +08:00
parent 28a790f7eb
commit daf043bd0c
6 changed files with 23 additions and 23 deletions

View file

@ -279,10 +279,10 @@ export class Outline extends Model {
if (selectItem) {
getAllModels().editor.find(editItem => {
if (editItem.editor.protyle.block.rootID === this.blockId) {
let previousID
let parentID
const undoPreviousID = item.previousElementSibling?.getAttribute("data-node-id")
const undoParentID = item.parentElement.previousElementSibling?.getAttribute("data-node-id")
let previousID;
let parentID;
const undoPreviousID = item.previousElementSibling?.getAttribute("data-node-id");
const undoParentID = item.parentElement.previousElementSibling?.getAttribute("data-node-id");
if (selectItem.classList.contains("dragover")) {
parentID = selectItem.getAttribute("data-node-id");
if (selectItem.nextElementSibling && selectItem.nextElementSibling.tagName === "UL") {