Vanessa 2024-05-20 11:56:19 +08:00
parent 407dd3836f
commit 4e8550beb9
3 changed files with 25 additions and 7 deletions

View file

@ -176,9 +176,9 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
const rowsElement = blockElement.querySelector(".av__row--select");
if (rowsElement) {
updateCellsValue(protyle, blockElement as HTMLElement, text, undefined, columns);
updateCellsValue(protyle, blockElement as HTMLElement, text, undefined, columns, html);
} else if (cellsElement.length > 0) {
updateCellsValue(protyle, blockElement as HTMLElement, text, cellsElement, columns);
updateCellsValue(protyle, blockElement as HTMLElement, text, cellsElement, columns, html);
} else if (hasClosestByClassName(range.startContainer, "av__title")) {
range.insertNode(document.createTextNode(text));
range.collapse(false);