add 'remove authorcolors' button

This commit is contained in:
stoppegp committed 2020-04-07 16:52:38 +02:00
1 parent 45b5eb7cac
commit 8696ecc692
2 files changed
+18 -3

No files matched your search

+2 -2
View File
@@ -418,12 +418,12 @@ define([
exp.contentUpdate = function (newContent) {
exp.contentUpdate = function (newContent, authormarksUpdate, authormarksLocal) {
var oldDoc = canonicalize(editor.getValue());
var remoteDoc = newContent.content;
// setValueAndCursor triggers onLocal, even if we don't make any change to the content
// and it may revert other changes (metadata)
if (oldDoc === remoteDoc) { return; }
if (oldDoc === remoteDoc && authormarksUpdate == authormarksLocal) { return; }
exp.setValueAndCursor(oldDoc, remoteDoc);
};