Vanessa 2025-05-29 11:18:53 +08:00
parent 83f8f904b8
commit 42380b1d41

View file

@ -2024,5 +2024,11 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
event.stopPropagation();
return;
}
// https://github.com/siyuan-note/siyuan/issues/14743
if (nodeElement && getContenteditableElement(nodeElement) &&
range.endContainer.nodeType === 1 && (range.endContainer as HTMLElement).classList.contains("protyle-attr")) {
range.collapse(true);
}
});
};