mirror of https://github.com/status-im/codimd.git
Remove CodeMirror-other-cursors dom creation
Since it’s done via hackmdio/CodeMirror#1
This commit is contained in:
parent
88c0c68856
commit
d9221f6011
|
@ -2466,9 +2466,6 @@ function buildCursor (user) {
|
||||||
iconClass = 'fa-desktop'
|
iconClass = 'fa-desktop'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if ($('.CodeMirror-other-cursors').length <= 0) {
|
|
||||||
$("<div class='CodeMirror-other-cursors'>").insertAfter('.CodeMirror-cursors')
|
|
||||||
}
|
|
||||||
if ($('div[data-clientid="' + user.id + '"]').length <= 0) {
|
if ($('div[data-clientid="' + user.id + '"]').length <= 0) {
|
||||||
let cursor = $('<div data-clientid="' + user.id + '" class="CodeMirror-other-cursor" style="display:none;"></div>')
|
let cursor = $('<div data-clientid="' + user.id + '" class="CodeMirror-other-cursor" style="display:none;"></div>')
|
||||||
cursor.attr('data-line', user.cursor.line)
|
cursor.attr('data-line', user.cursor.line)
|
||||||
|
|
Loading…
Reference in New Issue