add 'remove authorcolors' button

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

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);
};