diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 9befc0520..ebe52e55a 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -341,11 +341,14 @@ export const openCalcMenu = (protyle: IProtyle, calcElement: HTMLElement) => { export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[]) => { const type = cellElements[0].parentElement.parentElement.firstElementChild.querySelector(`[data-col-id="${cellElements[0].getAttribute("data-col-id")}"]`).getAttribute("data-dtype") as TAVCol; + if (type === "block") { + return; + } const cellRect = cellElements[0].getBoundingClientRect(); let html = ""; const style = `style="position:absolute;left: ${cellRect.left}px;top: ${cellRect.top}px;width:${Math.max(cellRect.width, 200)}px;height: ${cellRect.height}px"`; const blockElement = hasClosestBlock(cellElements[0]); - if (["block", "text", "url"].includes(type)) { + if (["text", "url"].includes(type)) { html = ``; } else if (type === "number") { html = ``;