0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fix undo bug

issue #2436
This commit is contained in:
Hannah Wolfe 2014-03-16 16:27:32 +00:00
parent c0c5058eea
commit 545fc6e911

View file

@ -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);
}