This commit is contained in:
parent
d2aec48657
commit
4465397c21
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"clearContextSucc": "上下文已清空",
|
||||
"emptyMobilePlaceholder": "写点什么",
|
||||
"emptyPlaceholder": "写点什么,或按下 ' / ' 查看命令",
|
||||
"publish": "发布",
|
||||
"publishService": "发布服务",
|
||||
|
|
|
@ -186,7 +186,11 @@ const setHTML = (options: {
|
|||
const editElement = getContenteditableElement(protyle.wysiwyg.element.firstElementChild);
|
||||
if (editElement && editElement.textContent === "") {
|
||||
editElement.classList.add("protyle-wysiwyg--empty");
|
||||
/// #if MOBILE
|
||||
editElement.setAttribute("placeholder", window.siyuan.languages.emptyPlaceholder);
|
||||
/// #else
|
||||
editElement.setAttribute("placeholder", window.siyuan.languages.emptyPlaceholder);
|
||||
/// #endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue