Correct handling of the note object foir state diagrams when sanitizing it

This commit is contained in:
Knut Sveidqvist
2021-09-29 19:48:27 +02:00
parent dd088bc603
commit 7ad509cc7a
7 changed files with 62302 additions and 1849 deletions

View File

@@ -148,7 +148,13 @@ export const addState = function (id, type, doc, descr, note) {
}
}
if (note) currentDocument.states[id].note = common.sanitizeText(note, configApi.getConfig());
if (note) {
currentDocument.states[id].note = note;
currentDocument.states[id].note.text = common.sanitizeText(
currentDocument.states[id].note.text,
configApi.getConfig()
);
}
};
export const clear = function () {