mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
0bea81578f
commit
1d8c020aa7
1 changed files with 3 additions and 1 deletions
|
@ -910,7 +910,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
// 需使用 textContent,文本元素没有 innerText
|
||||
currentNode.textContent === "") // https://ld246.com/article/1649251218696
|
||||
)) {
|
||||
removeBlock(protyle, nodeElement, range, "Backspace");
|
||||
if (!nodeElement.classList.contains("code-block")) {
|
||||
removeBlock(protyle, nodeElement, range, "Backspace");
|
||||
}
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue