mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
c6b20179a6
commit
c403842c8b
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue