mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-17 22:25:29 +01:00
This commit is contained in:
parent
2213d26a40
commit
0cd0913484
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue