|
|
@ -451,6 +451,11 @@ window.ErrorBox = ErrorBox;
|
|
|
|
var onEvent = function () { };
|
|
|
|
var onEvent = function () { };
|
|
|
|
|
|
|
|
|
|
|
|
var toolbar = createRealtimeToolbar('#cke_1_toolbox');
|
|
|
|
var toolbar = createRealtimeToolbar('#cke_1_toolbox');
|
|
|
|
|
|
|
|
var userListElement = createUserList(toolbar.find('.rtwysiwyg-toolbar-leftside'));
|
|
|
|
|
|
|
|
var spinner = createSpinner(toolbar.find('.rtwysiwyg-toolbar-rightside'));
|
|
|
|
|
|
|
|
var lagElement = createLagElement(toolbar.find('.rtwysiwyg-toolbar-rightside'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var userList
|
|
|
|
|
|
|
|
|
|
|
|
var allMessages = [];
|
|
|
|
var allMessages = [];
|
|
|
|
var isErrorState = false;
|
|
|
|
var isErrorState = false;
|
|
|
@ -488,6 +493,7 @@ console.log(new Error().stack);
|
|
|
|
socket.onOpen.push(function (evt) {
|
|
|
|
socket.onOpen.push(function (evt) {
|
|
|
|
if (!initializing) {
|
|
|
|
if (!initializing) {
|
|
|
|
socket.realtime.start();
|
|
|
|
socket.realtime.start();
|
|
|
|
|
|
|
|
updateUserList(userName, userListElement, userList);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -500,10 +506,6 @@ console.log(new Error().stack);
|
|
|
|
|
|
|
|
|
|
|
|
//createDebugLink(realtime, doc, allMessages, toolbar);
|
|
|
|
//createDebugLink(realtime, doc, allMessages, toolbar);
|
|
|
|
|
|
|
|
|
|
|
|
var userListElement = createUserList(toolbar.find('.rtwysiwyg-toolbar-leftside'));
|
|
|
|
|
|
|
|
var spinner = createSpinner(toolbar.find('.rtwysiwyg-toolbar-rightside'));
|
|
|
|
|
|
|
|
var lagElement = createLagElement(toolbar.find('.rtwysiwyg-toolbar-rightside'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setInterval(function () {
|
|
|
|
setInterval(function () {
|
|
|
|
if (initializing || isSocketDisconnected(socket, realtime)) { return; }
|
|
|
|
if (initializing || isSocketDisconnected(socket, realtime)) { return; }
|
|
|
|
checkLag(realtime, lagElement);
|
|
|
|
checkLag(realtime, lagElement);
|
|
|
|