mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 15:26:09 +01:00
This commit is contained in:
parent
3d2de51654
commit
8dbd21d60d
2 changed files with 5 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue