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:
committed by
Sebastiaan Janssen
parent
7d0d5b9c93
commit
b4495d0ae5
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user