update RTE model on changing code or media

This commit is contained in:
Niels Lyngsø
2019-04-23 13:43:36 +02:00
parent 417b270f59
commit 71bea2bc25

View File

@@ -453,6 +453,9 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
}
}
editor.dom.setAttrib(imgElm, 'id', null);
editor.fire('Change');
}, 500);
}
},
@@ -1257,6 +1260,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
view: 'views/propertyeditors/rte/codeeditor.html',
submit: function (model) {
args.editor.setContent(model.content);
args.editor.fire('Change');
editorService.close();
},
close: function () {