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

fix change logic in embeds example, fixes #1074 (#1078)

This commit is contained in:
Ian Storm Taylor
2017-09-07 09:04:17 -07:00
committed by GitHub
parent 2b168541dc
commit 01bc6944bd

View File

@@ -30,7 +30,7 @@ class Video extends React.Component {
onChange = (e) => { onChange = (e) => {
const video = e.target.value const video = e.target.value
const { node, editor } = this.props const { node, editor } = this.props
editor.transform(t => t.setNodeByKey(node.key, { data: { video }})) editor.change(c => c.setNodeByKey(node.key, { data: { video }}))
} }
/** /**