Added document max length limit, enforceMaxLength on change and show modal when reach the limit.

This commit is contained in:
Wu Cheng-Han 2015-07-16 22:46:06 +08:00
parent 57253d28a7
commit d14c5bdc9c
6 changed files with 59 additions and 9 deletions

View file

@ -95,6 +95,7 @@ EditorSocketIOServer.prototype.onOperation = function (socket, revision, operati
try {
var clientId = socket.id;
var wrappedPrime = this.receiveOperation(revision, wrapped);
if(!wrappedPrime) return;
//console.log("new operation: " + JSON.stringify(wrapped));
this.getClient(clientId).selection = wrappedPrime.meta;
revision = this.operations.length;