1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

update syncing-operations example

This commit is contained in:
Ian Storm Taylor
2017-11-16 11:53:59 -08:00
parent afc969b5ba
commit 65c583f695

View File

@@ -246,7 +246,7 @@ class SyncingOperationsExample extends React.Component {
onOneChange = (change) => {
const ops = change.operations
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
.map(o => o.toJSON())
.toJS()
this.two.applyOperations(ops)
}
@@ -260,7 +260,7 @@ class SyncingOperationsExample extends React.Component {
onTwoChange = (change) => {
const ops = change.operations
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
.map(o => o.toJSON())
.toJS()
this.one.applyOperations(ops)
}