if tinymce has not loaded yet, return the initialized value only

This commit is contained in:
Mark Drake
2018-09-27 17:03:24 -04:00
parent 85291b562e
commit 12a9466cd7

View File

@@ -377,7 +377,7 @@ 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.
if (tinyMceEditor !== undefined && tinyMceEditor != null) {
if (tinyMceEditor !== undefined && tinyMceEditor != null && !$scope.isLoading) {
$scope.model.value = tinyMceEditor.getContent();
}
});