0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fix undo bug

issue #2436
This commit is contained in:
Hannah Wolfe 2014-03-16 16:27:32 +00:00
parent 6d3cd84309
commit 00667f5bd1

View file

@ -61,7 +61,7 @@
if (isImage) { if (isImage) {
hasMarker = line.text.match(markerRegex); 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 // this could be a duplicate, and won't be a real marker
markerMgr.stripMarkerFromLine(line); markerMgr.stripMarkerFromLine(line);
} }