mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 14:58:49 +01:00
This commit is contained in:
parent
0203a482b3
commit
3d7191b13d
1 changed files with 2 additions and 2 deletions
|
|
@ -140,8 +140,8 @@ export class Title {
|
|||
event.stopPropagation();
|
||||
}
|
||||
} else if (event.key === "Enter") {
|
||||
const editElment = getContenteditableElement(protyle.wysiwyg.element.firstElementChild);
|
||||
if (editElment && editElment.textContent === "" && !protyle.wysiwyg.element.firstElementChild.classList.contains("av")) {
|
||||
const editElement = getContenteditableElement(protyle.wysiwyg.element.firstElementChild);
|
||||
if (editElement && editElement.textContent === "" && editElement.getAttribute("placeholder")) {
|
||||
// 配合提示文本使用,避免提示文本挤压到第二个块中
|
||||
focusBlock(protyle.wysiwyg.element.firstElementChild, protyle.wysiwyg.element);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue