mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user