mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
Added document max length limit, enforceMaxLength on change and show modal when reach the limit.
This commit is contained in:
parent
57253d28a7
commit
d14c5bdc9c
6 changed files with 59 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue