From 01bc6944bdcb14a3d0f97be71f600713b5c380af Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Thu, 7 Sep 2017 09:04:17 -0700 Subject: [PATCH] fix change logic in embeds example, fixes #1074 (#1078) --- examples/embeds/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/embeds/video.js b/examples/embeds/video.js index dc73bf6a1..d9c8122c7 100644 --- a/examples/embeds/video.js +++ b/examples/embeds/video.js @@ -30,7 +30,7 @@ class Video extends React.Component { onChange = (e) => { const video = e.target.value const { node, editor } = this.props - editor.transform(t => t.setNodeByKey(node.key, { data: { video }})) + editor.change(c => c.setNodeByKey(node.key, { data: { video }})) } /**