1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 09:04:31 +02:00

fix embed example to not clobber edits, closes #301

This commit is contained in:
Ian Storm Taylor
2016-09-10 17:59:01 -07:00
parent 4e610708d1
commit cc11861627

View File

@@ -22,7 +22,8 @@ class Video extends React.Component {
data: { video }
}
const next = state
const next = editor
.getState()
.transform()
.setNodeByKey(node.key, properties)
.apply()