diff options
author | Yukai Huang | 2017-04-11 14:17:14 +0800 |
---|---|---|
committer | Yukai Huang | 2017-05-07 20:38:22 +0800 |
commit | d9221f6011aab9355f842b6e001df75b71120960 (patch) | |
tree | ba58d7fa9054da0633129bb2105d902ef9abd007 /public/js | |
parent | 88c0c688561e8656763391699c385cc89461d776 (diff) |
Remove CodeMirror-other-cursors dom creation
Since it’s done via hackmdio/CodeMirror#1
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/public/js/index.js b/public/js/index.js index 81c24ebc..0ca6827b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -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) |