From cc11861627f83867260824a454bad3803938e8ef Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Sat, 10 Sep 2016 17:59:01 -0700 Subject: [PATCH] fix embed example to not clobber edits, closes #301 --- examples/embeds/video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/embeds/video.js b/examples/embeds/video.js index 7589eda76..ae9b3ad07 100644 --- a/examples/embeds/video.js +++ b/examples/embeds/video.js @@ -22,7 +22,8 @@ class Video extends React.Component { data: { video } } - const next = state + const next = editor + .getState() .transform() .setNodeByKey(node.key, properties) .apply()