From b6a06c071fb2057c9767f25574961501c56b0673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 2 Oct 2020 21:57:46 +0200 Subject: [PATCH] refactoring --- packages/core/src/Editor.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 87e50e39..f935946e 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -122,14 +122,7 @@ export class Editor extends EventEmitter { this.registerCommands(coreCommands) this.injectCSS() - // TODO: The autoFocus option has no impact - // Doesn’t work - this.proxy.focus(this.options.autoFocus) - // Does work - // window.setTimeout(() => { - // console.log(this.options.autoFocus) - // this.proxy.focus(this.options.autoFocus) - // }, 100) + window.setTimeout(() => this.proxy.focus(this.options.autoFocus), 0) } /**