Fix text duplication bug #352
This commit is contained in:
parent
adc64f0c6e
commit
10f97354fe
@ -111,10 +111,13 @@ define([
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exp.removeCursors = function () {
|
exp.removeCursors = function (inner) {
|
||||||
for (var id in cursors) {
|
for (var id in cursors) {
|
||||||
deleteCursor(id);
|
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) {
|
exp.cursorGetter = function (hjson) {
|
||||||
|
|||||||
@ -665,7 +665,7 @@ define([
|
|||||||
|
|
||||||
// We have to remove the cursors before getting the content because they split
|
// We have to remove the cursors before getting the content because they split
|
||||||
// the text nodes and OT/ChainPad would freak out
|
// the text nodes and OT/ChainPad would freak out
|
||||||
cursors.removeCursors();
|
cursors.removeCursors(inner);
|
||||||
|
|
||||||
displayMediaTags(framework, inner, mediaTagMap);
|
displayMediaTags(framework, inner, mediaTagMap);
|
||||||
inner.normalize();
|
inner.normalize();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user