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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user