refactoring

This commit is contained in:
Philipp Kühn
2020-10-02 21:57:46 +02:00
parent 6baa758ec3
commit b6a06c071f

View File

@@ -122,14 +122,7 @@ export class Editor extends EventEmitter {
this.registerCommands(coreCommands) this.registerCommands(coreCommands)
this.injectCSS() this.injectCSS()
// TODO: The autoFocus option has no impact window.setTimeout(() => this.proxy.focus(this.options.autoFocus), 0)
// Doesnt work
this.proxy.focus(this.options.autoFocus)
// Does work
// window.setTimeout(() => {
// console.log(this.options.autoFocus)
// this.proxy.focus(this.options.autoFocus)
// }, 100)
} }
/** /**