From c85671aba479eb90b4e70757852dc66a4bf2f943 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Wed, 27 Jul 2016 14:34:11 -0700 Subject: [PATCH] add fragment handling to core onPaste --- lib/components/content.js | 14 +++----------- lib/plugins/core.js | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/lib/components/content.js b/lib/components/content.js index fbb3d8e41..6ba364811 100644 --- a/lib/components/content.js +++ b/lib/components/content.js @@ -532,21 +532,13 @@ class Content extends React.Component { // If html, and the html includes a `data-fragment` attribute, it's actually // a raw-serialized JSON fragment from a previous cut/copy, so deserialize - // it and insert it normally. + // it and update the data. if (data.type == 'html' && ~data.html.indexOf('