diff --git a/www/slide/inner.js b/www/slide/inner.js index 1881e42b2..74254c7b5 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -471,6 +471,13 @@ define([ return content; }); + framework.onCursorUpdate(CodeMirror.setRemoteCursor); + framework.setCursorGetter(CodeMirror.getCursor); + editor.on('cursorActivity', function () { + if (editor._noCursorUpdate) { return; } + framework.updateCursor(); + }); + framework.onEditableChange(function () { editor.setOption('readOnly', framework.isLocked() || framework.isReadOnly()); });