Remove CodeMirror-other-cursors dom creation
Since it’s done via hackmdio/CodeMirror#1
This commit is contained in:
parent
88c0c68856
commit
d9221f6011
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue