mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
This commit is contained in:
parent
dc91c25941
commit
e7e209c8bd
1 changed files with 6 additions and 1 deletions
|
|
@ -67,7 +67,12 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
||||||
// https://github.com/siyuan-note/siyuan/issues/12468
|
// https://github.com/siyuan-note/siyuan/issues/12468
|
||||||
if ((event.inputType === "deleteContentBackward" || event.inputType === "deleteContentForward") &&
|
if ((event.inputType === "deleteContentBackward" || event.inputType === "deleteContentForward") &&
|
||||||
wbrNextElement && wbrNextElement.nodeType === 1 && wbrNextElement.tagName === "BR") {
|
wbrNextElement && wbrNextElement.nodeType === 1 && wbrNextElement.tagName === "BR") {
|
||||||
wbrNextElement.remove();
|
// https://github.com/siyuan-note/siyuan/issues/13190
|
||||||
|
const brNextElement = hasNextSibling(wbrNextElement);
|
||||||
|
if (brNextElement && brNextElement.nodeType === 1 &&
|
||||||
|
(brNextElement as HTMLElement).getAttribute("data-type")?.indexOf("inline-math") > -1) {
|
||||||
|
wbrNextElement.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const id = blockElement.getAttribute("data-node-id");
|
const id = blockElement.getAttribute("data-node-id");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue