From 00667f5bd1e1521927d72b6fd350702041e20cfd Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Sun, 16 Mar 2014 16:27:32 +0000 Subject: [PATCH] Fix undo bug issue #2436 --- core/client/assets/lib/editor/uploadManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/assets/lib/editor/uploadManager.js b/core/client/assets/lib/editor/uploadManager.js index b83b37fb64..7bbee4e14c 100644 --- a/core/client/assets/lib/editor/uploadManager.js +++ b/core/client/assets/lib/editor/uploadManager.js @@ -61,7 +61,7 @@ if (isImage) { hasMarker = line.text.match(markerRegex); - if (hasMarker && mode === 'paste') { + if (hasMarker && (mode === 'paste' || mode === 'undo')) { // this could be a duplicate, and won't be a real marker markerMgr.stripMarkerFromLine(line); }