Fixes content getting deleted when saving an RTE before it's fully loaded.

This commit is contained in:
Jim Osborn
2018-09-24 12:38:04 +01:00
parent 8bf8e0a741
commit 3f79067e26

View File

@@ -377,7 +377,9 @@ angular.module("umbraco")
var unsubscribe = $scope.$on("formSubmitting", function () {
//TODO: Here we should parse out the macro rendered content so we can save on a lot of bytes in data xfer
// we do parse it out on the server side but would be nice to do that on the client side before as well.
$scope.model.value = tinyMceEditor ? tinyMceEditor.getContent() : null;
if (tinyMceEditor !== undefined && tinyMceEditor != null) {
$scope.model.value = tinyMceEditor.getContent();
}
});
//when the element is disposed we need to unsubscribe!