Remove CodeMirror-other-cursors dom creation

Since it’s done via hackmdio/CodeMirror#1
This commit is contained in:
Yukai Huang 2017-04-11 14:17:14 +08:00
parent 88c0c68856
commit d9221f6011

View file

@ -2466,9 +2466,6 @@ function buildCursor (user) {
iconClass = 'fa-desktop'
break
}
if ($('.CodeMirror-other-cursors').length <= 0) {
$("<div class='CodeMirror-other-cursors'>").insertAfter('.CodeMirror-cursors')
}
if ($('div[data-clientid="' + user.id + '"]').length <= 0) {
let cursor = $('<div data-clientid="' + user.id + '" class="CodeMirror-other-cursor" style="display:none;"></div>')
cursor.attr('data-line', user.cursor.line)