From e55214da2f1cfae4cd53d461a8a24f3c32a7d3f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 14 Jan 2025 22:06:40 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13704 --- app/src/protyle/render/av/cell.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") {