Skip to content

Commit

Permalink
fix #114
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 23, 2014
1 parent 0f9502e commit 19200d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/multi-cursor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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

0 comments on commit 19200d4

Please sign in to comment.