mirror of
https://github.com/cudr/slate-collaborative.git
synced 2025-06-07 09:54:03 +00:00
Call onChange after normalization
This commit is contained in:
parent
f65ab040ee
commit
4a150a5125
@ -100,9 +100,10 @@ export const AutomergeEditor = {
|
|||||||
|
|
||||||
Editor.withoutNormalizing(e, () => {
|
Editor.withoutNormalizing(e, () => {
|
||||||
e.children = toJS(mergedDoc).children
|
e.children = toJS(mergedDoc).children
|
||||||
|
|
||||||
e.onChange()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// onChange expect valid doc, we make sure do normalization before that.
|
||||||
|
e.onChange()
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user