🎨 Improve pasting in av cell

This commit is contained in:
Daniel 2024-01-04 17:19:48 +08:00
parent 904a0dd587
commit 80dffbc508
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -11,7 +11,7 @@ import {updateAVName} from "../render/av/action";
import {updateCellsValue} from "../render/av/cell";
const processAV = (range: Range, html: string, protyle: IProtyle, blockElement: Element) => {
const text = protyle.lute.BlockDOM2StdMd(html);
const text = protyle.lute.BlockDOM2EscapeMarkerContent(html);
const cellsElement: HTMLElement[] = Array.from(blockElement.querySelectorAll(".av__cell--select"));
const rowsElement = blockElement.querySelector(".av__row--select");
if (rowsElement) {