mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
5c53e3c9b2
commit
ac3145976f
5 changed files with 58 additions and 43 deletions
|
|
@ -313,7 +313,7 @@ export const openMenuPanel = (options: {
|
|||
targetElement.after(sourceElement);
|
||||
}
|
||||
targetElement.classList.remove("dragover__bottom", "dragover__top");
|
||||
setRelationCell(options.protyle, options.blockElement as HTMLElement, sourceElement.parentElement);
|
||||
setRelationCell(options.protyle, options.blockElement as HTMLElement, sourceElement.parentElement, options.cellElements);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -879,7 +879,7 @@ export const openMenuPanel = (options: {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "setRelationCell") {
|
||||
setRelationCell(options.protyle, options.blockElement as HTMLElement, target);
|
||||
setRelationCell(options.protyle, options.blockElement as HTMLElement, target, options.cellElements);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue