mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 11:42:53 +02:00
fix syncing-operations example
This commit is contained in:
@@ -248,7 +248,9 @@ class SyncingOperationsExample extends React.Component {
|
|||||||
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
|
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
|
||||||
.toJS()
|
.toJS()
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
this.two.applyOperations(ops)
|
this.two.applyOperations(ops)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -262,7 +264,9 @@ class SyncingOperationsExample extends React.Component {
|
|||||||
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
|
.filter(o => o.type != 'set_selection' && o.type != 'set_value')
|
||||||
.toJS()
|
.toJS()
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
this.one.applyOperations(ops)
|
this.one.applyOperations(ops)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user