mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-25 16:20:49 +02:00
remove old prevState
logic from transforms
This commit is contained in:
@@ -58,7 +58,7 @@ class State extends new Record(DEFAULTS) {
|
||||
|
||||
const state = new State({ document, selection })
|
||||
|
||||
return state.transform({ normalized: false })
|
||||
return state.transform()
|
||||
.normalize(SCHEMA)
|
||||
.apply({ save: false })
|
||||
}
|
||||
|
@@ -29,7 +29,6 @@ class Transform {
|
||||
constructor(properties) {
|
||||
const { state, normalized = true } = properties
|
||||
this.state = state
|
||||
this.prevState = normalized ? state : null
|
||||
this.operations = []
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user