|
|
@ -459,9 +459,7 @@ define([
|
|
|
|
var andThen2 = function (editor, CodeMirror, framework, isPresentMode) {
|
|
|
|
var andThen2 = function (editor, CodeMirror, framework, isPresentMode) {
|
|
|
|
|
|
|
|
|
|
|
|
var common = framework._.sfCommon;
|
|
|
|
var common = framework._.sfCommon;
|
|
|
|
var metadataMgr = common.getMetadataMgr();
|
|
|
|
var privateData = common.getMetadataMgr().getPrivateData();
|
|
|
|
var privateData = metadataMgr.getPrivateData();
|
|
|
|
|
|
|
|
CodeMirror.uid = metadataMgr.getUserData().uid;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var $contentContainer = $('#cp-app-slide-editor');
|
|
|
|
var $contentContainer = $('#cp-app-slide-editor');
|
|
|
|
var $modal = $('#cp-app-slide-modal');
|
|
|
|
var $modal = $('#cp-app-slide-modal');
|
|
|
@ -513,7 +511,7 @@ define([
|
|
|
|
framework.updateCursor();
|
|
|
|
framework.updateCursor();
|
|
|
|
}, 500); // 500ms to make sure it is sent after chainpad sync
|
|
|
|
}, 500); // 500ms to make sure it is sent after chainpad sync
|
|
|
|
};
|
|
|
|
};
|
|
|
|
framework.onCursorUpdate(CodeMirror.setRemoteCursor); // XXX
|
|
|
|
framework.onCursorUpdate(CodeMirror.setRemoteCursor);
|
|
|
|
framework.setCursorGetter(CodeMirror.getCursor);
|
|
|
|
framework.setCursorGetter(CodeMirror.getCursor);
|
|
|
|
editor.on('cursorActivity', updateCursor);
|
|
|
|
editor.on('cursorActivity', updateCursor);
|
|
|
|
|
|
|
|
|
|
|
|