|
|
@ -471,6 +471,13 @@ define([
|
|
|
|
return content;
|
|
|
|
return content;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework.onCursorUpdate(CodeMirror.setRemoteCursor);
|
|
|
|
|
|
|
|
framework.setCursorGetter(CodeMirror.getCursor);
|
|
|
|
|
|
|
|
editor.on('cursorActivity', function () {
|
|
|
|
|
|
|
|
if (editor._noCursorUpdate) { return; }
|
|
|
|
|
|
|
|
framework.updateCursor();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
framework.onEditableChange(function () {
|
|
|
|
framework.onEditableChange(function () {
|
|
|
|
editor.setOption('readOnly', framework.isLocked() || framework.isReadOnly());
|
|
|
|
editor.setOption('readOnly', framework.isLocked() || framework.isReadOnly());
|
|
|
|
});
|
|
|
|
});
|
|
|
|