1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 09:04:31 +02:00

Don't normalize when applying transforms

This commit is contained in:
Samy Pesse
2016-10-24 00:22:21 +02:00
parent 4f1fc842a8
commit 1377e28bcb
2 changed files with 2 additions and 3 deletions

View File

@@ -52,9 +52,8 @@ class State extends new Record(DEFAULTS) {
}
const state = new State({ document, selection })
// transform.apply will normalize the document
return state.transform()
.normalize()
.apply({ save: false })
}

View File

@@ -56,7 +56,7 @@ class Transform {
let { merge, save, isNative = false, normalize = true } = options
// Ensure that the state is normalized.
if (normalize) transform = transform.normalize()
// if (normalize) transform = transform.normalize()
let { state, operations } = transform
let { history } = state