mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 17:09:53 +02:00
fix embed example to not clobber edits, closes #301
This commit is contained in:
@@ -22,7 +22,8 @@ class Video extends React.Component {
|
|||||||
data: { video }
|
data: { video }
|
||||||
}
|
}
|
||||||
|
|
||||||
const next = state
|
const next = editor
|
||||||
|
.getState()
|
||||||
.transform()
|
.transform()
|
||||||
.setNodeByKey(node.key, properties)
|
.setNodeByKey(node.key, properties)
|
||||||
.apply()
|
.apply()
|
||||||
|
Reference in New Issue
Block a user