🐛 cell 获取错误

This commit is contained in:
Vanessa 2023-12-29 14:30:46 +08:00
parent 52de7a24d4
commit aa2b52bad9
5 changed files with 72 additions and 69 deletions

View file

@ -145,12 +145,14 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
});
if ((nodeElement && nodeElement.classList.contains("av"))) {
updateCellsValue(protyle, nodeElement, avAssets);
document.querySelector(".av__panel")?.remove();
return
}
if (document.querySelector(".av__panel")) {
const blockElement = hasClosestBlock(protyle.wysiwyg.element.querySelector(".av__cell--select"));
if (blockElement) {
updateCellsValue(protyle, blockElement, avAssets);
document.querySelector(".av__panel")?.remove();
return;
}
}