mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fix out of sync when deleting on same cursor position on several clients
from: https://github.com/aullman/opentok-editor/issues/4
This commit is contained in:
parent
0aaa598130
commit
0bea4da623
2 changed files with 4 additions and 2 deletions
4
public/vendor/ot/codemirror-adapter.js
vendored
4
public/vendor/ot/codemirror-adapter.js
vendored
|
@ -343,7 +343,9 @@ ot.CodeMirrorAdapter = (function (global) {
|
||||||
};
|
};
|
||||||
|
|
||||||
CodeMirrorAdapter.prototype.applyOperation = function (operation) {
|
CodeMirrorAdapter.prototype.applyOperation = function (operation) {
|
||||||
this.ignoreNextChange = true;
|
if (!operation.isNoop()) {
|
||||||
|
this.ignoreNextChange = true;
|
||||||
|
}
|
||||||
CodeMirrorAdapter.applyOperationToCodeMirror(operation, this.cm);
|
CodeMirrorAdapter.applyOperationToCodeMirror(operation, this.cm);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
public/vendor/ot/ot.min.js
vendored
2
public/vendor/ot/ot.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue