diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index c9ada0ccc..aae079e40 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -396,7 +396,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type } if (["text", "email", "phone", "block", "template"].includes(type)) { - html = ``; + html = ``; } else if (type === "url") { html = ``; } else if (type === "number") { @@ -429,6 +429,9 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type const avMaskElement = document.querySelector(".av__mask"); const inputElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement; if (inputElement) { + if (["text", "email", "phone", "block", "template"].includes(type)) { + inputElement.value = cellElements[0].querySelector(".av__celltext").textContent; + } inputElement.select(); inputElement.focus(); if (type === "template") {