refactoring
This commit is contained in:
@@ -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)
|
||||||
// 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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user