See other users' cursor position
This commit is contained in:
@@ -301,6 +301,13 @@ define([
|
||||
return content;
|
||||
});
|
||||
|
||||
framework.onCursorUpdate(CodeMirror.setRemoteCursor);
|
||||
framework.setCursorGetter(CodeMirror.getCursor);
|
||||
editor.on('cursorActivity', function () {
|
||||
if (editor._noCursorUpdate) { console.log('ok'); return; }
|
||||
framework.updateCursor();
|
||||
});
|
||||
|
||||
framework.onEditableChange(function () {
|
||||
editor.setOption('readOnly', framework.isLocked() || framework.isReadOnly());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user