From 8210ae3a09e232faab920f68fe105af2faea0e81 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 30 Mar 2020 16:41:47 +0200 Subject: [PATCH] Fix duplicate text bug #352 --- www/pad/inner.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/pad/inner.js b/www/pad/inner.js index ccc657add..632294f43 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -601,6 +601,8 @@ define([ restoreMediaTags(userDocStateDom, mediaTagMap); + cursors.removeCursors(inner); + // Deal with adjasent text nodes userDocStateDom.normalize(); inner.normalize(); @@ -809,8 +811,8 @@ define([ }); /* Display the cursor of other users and send our cursor */ - //framework.setCursorGetter(cursors.cursorGetter); - //framework.onCursorUpdate(cursors.onCursorUpdate); + framework.setCursorGetter(cursors.cursorGetter); + framework.onCursorUpdate(cursors.onCursorUpdate); inner.addEventListener('click', updateCursor); inner.addEventListener('keyup', updateCursor);