Fix text duplication bug #352

pull/1/head
yflory 5 years ago
parent adc64f0c6e
commit 10f97354fe

@ -111,10 +111,13 @@ define([
}
};
exp.removeCursors = function () {
exp.removeCursors = function (inner) {
for (var id in cursors) {
deleteCursor(id);
}
// If diffdom has changed the cursor element somehow, we'll have cursor elements
// in the dom but not in memory: remove them
$(inner).find('.cp-cursor-position').remove();
};
exp.cursorGetter = function (hjson) {

@ -665,7 +665,7 @@ define([
// We have to remove the cursors before getting the content because they split
// the text nodes and OT/ChainPad would freak out
cursors.removeCursors();
cursors.removeCursors(inner);
displayMediaTags(framework, inner, mediaTagMap);
inner.normalize();

Loading…
Cancel
Save