refactoring

This commit is contained in:
Philipp Kühn
2020-09-22 15:22:24 +02:00
parent 119fdd0dff
commit 8ca8e041fd
4 changed files with 8 additions and 37 deletions

View File

@@ -8,8 +8,8 @@ declare module '../Editor' {
}
}
export const blur: BlurCommand = () => ({ editor }) => {
const element = editor.view.dom as HTMLElement
export const blur: BlurCommand = () => ({ view }) => {
const element = view.dom as HTMLElement
element.blur()