mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 12:28:48 +01:00
This commit is contained in:
parent
ba5f10eb52
commit
87c59fbe0d
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {hasClosestByAttribute} from "../util/hasClosest";
|
||||
import {hasClosestByAttribute, hasTopClosestByClassName} from "../util/hasClosest";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {processRender} from "../util/processCode";
|
||||
import {highlightRender} from "./highlightRender";
|
||||
|
|
@ -35,6 +35,11 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
|
|||
} else {
|
||||
breadcrumb = window.siyuan.config.editor.embedBlockBreadcrumb;
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/7575
|
||||
const sbElement = hasTopClosestByClassName(item, "sb")
|
||||
if (sbElement) {
|
||||
breadcrumb = false;
|
||||
}
|
||||
fetchPost("/api/search/searchEmbedBlock", {
|
||||
embedBlockID: item.getAttribute("data-node-id"),
|
||||
stmt: content,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue