refactoring

This commit is contained in:
Philipp Kühn
2019-05-03 17:50:30 +02:00
parent ee12e0577d
commit b5a5472171
2 changed files with 13 additions and 148 deletions

View File

@@ -39,7 +39,6 @@ export default class Editor {
onBlur: () => {},
onPaste: () => {},
onDrop: () => {},
onTransaction: () => true,
}
this.init(options)
@@ -284,10 +283,6 @@ export default class Editor {
}
dispatchTransaction(transaction) {
if (!this.options.onTransaction(transaction)) {
return
}
const oldState = this.state
this.state = this.state.apply(transaction)