Update rte.controller.js

Fix issue where an embedded macro prevents editor from returning to pristine/valid after a publish
This commit is contained in:
martin j griffiths
2019-09-19 10:30:51 +01:00
committed by Sebastiaan Janssen
parent 7d0d5b9c93
commit b4495d0ae5

View File

@@ -257,7 +257,10 @@ angular.module("umbraco")
// Update model on change, i.e. copy/pasted text, plugins altering content
editor.on('SetContent', function (e) {
if (!e.initial) {
syncContent(editor);
// sync content if editor is dirty
if (!editor.isNotDirty) {
syncContent(editor);
}
}
});