Vanessa 2025-06-26 12:01:52 +08:00
parent 3d2de51654
commit 8dbd21d60d
2 changed files with 5 additions and 2 deletions

View file

@ -300,7 +300,10 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
if (!blockElement) {
return false;
}
clearSelect(["cell", "row"], blockElement);
if (!rowElement.classList.contains("av__row--select")) {
clearSelect(["row"], blockElement);
}
clearSelect(["cell"], blockElement);
const menu = new Menu();
rowElement.classList.add("av__row--select");
rowElement.querySelector(".av__firstcol use").setAttribute("xlink:href", "#iconCheck");

View file

@ -629,7 +629,7 @@ export class WYSIWYG {
hideElements(["select"], protyle);
if (hasClosestByAttribute(target, "data-type", "av-gallery-more")) {
clearSelect(["img", "row", "cell"], protyle.wysiwyg.element);
} else {
} else if (!hasClosestByClassName(target, "av__firstcol")) {
clearSelect(["img", "av"], protyle.wysiwyg.element);
}