fix default selection

This commit is contained in:
Philipp Kühn 2019-07-31 11:09:18 +02:00
parent 1a80978d0f
commit 8b94b43919

View File

@ -74,7 +74,7 @@ export default class Editor extends Emitter {
...options,
})
this.focused = false
this.selection = null
this.selection = { from: 0, to: 0 }
this.element = document.createElement('div')
this.extensions = this.createExtensions()
this.nodes = this.createNodes()