From 19200d43b97b1e8f77765c0f0989d60bc37f40aa Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Fri, 23 May 2014 16:27:02 -0700 Subject: [PATCH] fix #114 --- src/modules/multi-cursor.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/multi-cursor.coffee b/src/modules/multi-cursor.coffee index 0dbc8ebfd2..bfa5d3bcce 100644 --- a/src/modules/multi-cursor.coffee +++ b/src/modules/multi-cursor.coffee @@ -128,6 +128,7 @@ class MultiCursor extends EventEmitter2 this.emit(MultiCursor.events.CURSOR_MOVED, cursor) _updateCursor: (cursor) -> + @quill.editor.checkUpdate() [leaf, offset] = @quill.editor.doc.findLeafAt(cursor.index, true) guide = @container.ownerDocument.createElement('span') if leaf? @@ -141,6 +142,7 @@ class MultiCursor extends EventEmitter2 DOM.removeNode(guide) DOM.normalize(leaf.node.parentNode) if didSplit cursor.dirty = false + @quill.editor.selection.update('silent') module.exports = MultiCursor