This commit is contained in:
parent
c0b0e3f03e
commit
84a52019f8
1 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,7 @@ import {
|
|||
hasClosestBlock,
|
||||
hasClosestByAttribute,
|
||||
hasClosestByClassName,
|
||||
hasClosestByMatchTag,
|
||||
hasClosestByMatchTag, hasTopClosestByAttribute,
|
||||
hasTopClosestByClassName,
|
||||
} from "../util/hasClosest";
|
||||
import {
|
||||
|
@ -1327,7 +1327,11 @@ export class WYSIWYG {
|
|||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
// https://github.com/siyuan-note/siyuan/issues/11793
|
||||
const embedElement = hasTopClosestByAttribute(nodeElement.parentElement, "data-type", "NodeBlockQueryEmbed");
|
||||
if (embedElement) {
|
||||
nodeElement = embedElement;
|
||||
}
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
const selectImgElement = nodeElement.querySelector(".img--select");
|
||||
|
|
Loading…
Add table
Reference in a new issue