Daniel 2025-04-07 20:40:51 +08:00
parent 2213d26a40
commit 0cd0913484
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -196,7 +196,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
if (!sideElement) {
const backlinkElement = hasClosestByClassName(protyle.element, "sy__backlink", true)
if (backlinkElement) {
const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id"));
const backLinkTab = getInstanceById(backlinkElement.getAttribute("data-id"), window.siyuan.layout.layout);
if (backLinkTab instanceof Tab && backLinkTab.model instanceof Backlink) {
const editors = backLinkTab.model.editors
editors.find((item, index) => {