Fix slides colors reset

This commit is contained in:
yflory 2021-01-12 14:05:43 +01:00
parent cc0f89ac4a
commit b8b2373512
1 changed files with 1 additions and 3 deletions

View File

@ -357,7 +357,7 @@ define([
};
var updateLocalColors = function (text, back) {
updateColors(text, back);
var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadata()));
var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadataLazy()));
if (backColor) { metadata.backColor = backColor; }
if (textColor) { metadata.color = textColor; }
metadataMgr.updateMetadata(metadata);
@ -527,8 +527,6 @@ define([
if (newPad) {
colors.updateLocalColors('#000', '#FFF');
} else {
colors.updateLocalColors('#FFF', '#000');
}
CodeMirror.setMode('markdown', function () { });