From 975fd55963e6a667eaf26547df542275206b1271 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 18 Jun 2022 23:02:21 +0800 Subject: [PATCH] =?UTF-8?q?:iphone:=20=E6=A0=87=E9=A2=98=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/mobile/editor.ts | 2 +- app/src/mobile/util/initFramework.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts index df1b1ed03..6584e1d4b 100644 --- a/app/src/mobile/editor.ts +++ b/app/src/mobile/editor.ts @@ -85,7 +85,7 @@ export const openMobileFileById = (id: string, hasContext?: boolean, action = [C } }); } - (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle; + (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === "Untitled" ? "" : data.data.rootTitle; setEditor(); closePanel(); if (pushStack) { diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index 0048fce69..a21fd5380 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -115,6 +115,7 @@ export const initFramework = () => { const initEditorName = () => { const inputElement = document.getElementById("toolbarName") as HTMLInputElement; + inputElement.setAttribute("placeholder", window.siyuan.languages._kernel[16]); inputElement.addEventListener("blur", () => { if (window.siyuan.config.readonly || document.querySelector("#toolbarEdit use").getAttribute("xlink:href") === "#iconEdit") { return;