|
@@ -116,7 +116,7 @@ export class Title {
|
|
}
|
|
}
|
|
} else if (event.key === "Enter") {
|
|
} else if (event.key === "Enter") {
|
|
const editElment = getContenteditableElement(protyle.wysiwyg.element.firstElementChild)
|
|
const editElment = getContenteditableElement(protyle.wysiwyg.element.firstElementChild)
|
|
- if (editElment && editElment.textContent === "") {
|
|
|
|
|
|
+ if (editElment && editElment.textContent === "" && !protyle.wysiwyg.element.firstElementChild.classList.contains("av")) {
|
|
// 配合提示文本使用,避免提示文本挤压到第二个块中
|
|
// 配合提示文本使用,避免提示文本挤压到第二个块中
|
|
focusBlock(protyle.wysiwyg.element.firstElementChild, protyle.wysiwyg.element);
|
|
focusBlock(protyle.wysiwyg.element.firstElementChild, protyle.wysiwyg.element);
|
|
} else {
|
|
} else {
|