This commit is contained in:
Liang Ding 2022-11-14 20:54:58 +08:00
parent c6b20179a6
commit c403842c8b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 3 additions and 3 deletions

View file

@ -76,6 +76,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
} else if (!event.repeat) {
hideElements(["toolbar"], protyle);
}
console.log(event)
const range = getEditorRange(protyle.wysiwyg.element);
const nodeElement = hasClosestBlock(range.startContainer);
if (!nodeElement) {