mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-13 05:16:39 +01:00
This commit is contained in:
parent
bd0bb5241a
commit
ae4adfeba4
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {hasClosestBlock, hasClosestByAttribute} from "../protyle/util/hasClosest";
|
||||
import {hasClosestBlock, isInEmbedBlock} from "../protyle/util/hasClosest";
|
||||
import {focusByRange, getEditorRange} from "../protyle/util/selection";
|
||||
|
||||
export const bgFade = (element: Element) => {
|
||||
|
|
@ -22,7 +22,7 @@ export const highlightById = (protyle: IProtyle, id: string, top = false) => {
|
|||
}
|
||||
|
||||
Array.from(protyleElement.querySelectorAll(`[data-node-id="${id}"]`)).find((item: HTMLElement) => {
|
||||
if (!hasClosestByAttribute(item, "data-type", "block-render", true)) {
|
||||
if (!isInEmbedBlock(item)) {
|
||||
nodeElement = item;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue