From 8705eef9067652d0857ad6dfcc8f648597aee2ec Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 12 Dec 2013 16:02:18 +0000 Subject: [PATCH] working import and copy/paste --- src/static/js/contentcollector.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index f0e6c7011..74ecdbaa5 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -452,11 +452,14 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class else { var tname = (dom.nodeTagName(node) || "").toLowerCase(); - // delete state.lineAttributes.pastedImage; - // The issue with above is that we comment it out import works great, if we don't import doesn't work! + + // Below seems a bit abrupt but it's required, I dunno if I think it's a great idea though.. + delete state.lineAttributes.pastedImage; + if (tname == "img") { state.lineAttributes.pastedImage = node.outerHTML; + cc.startNewLine(state); } else if (tname == "br") {