mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 19:22:35 +02:00
Normalize selection after all transforms
This commit is contained in:
@@ -47,16 +47,15 @@ class Transform {
|
||||
* @property {Boolean} isNative
|
||||
* @property {Boolean} merge
|
||||
* @property {Boolean} save
|
||||
* @property {Boolean} normalize
|
||||
* @return {State} state
|
||||
*/
|
||||
|
||||
apply(options = {}) {
|
||||
let transform = this
|
||||
let { merge, save, isNative = false, normalize = true } = options
|
||||
let { merge, save, isNative = false } = options
|
||||
|
||||
// Ensure that the state is normalized.
|
||||
// if (normalize) transform = transform.normalize()
|
||||
// Ensure that the selection is normalized.
|
||||
transform = transform.normalizeSelection()
|
||||
|
||||
let { state, operations } = transform
|
||||
let { history } = state
|
||||
|
Reference in New Issue
Block a user