diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util/fixnumber.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util/fixnumber.directive.js index ce00a9c6ad..c4068f068f 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/util/fixnumber.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/util/fixnumber.directive.js @@ -24,6 +24,7 @@ function fixNumber($parse) { //always return an int to the model ctrl.$parsers.push(function (value) { + if (value === 0) return 0; return parseFloat(value || '', 10); }); diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js index 1e5758bb55..fb93b77dd4 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js @@ -111,7 +111,7 @@ function tinyMceService(dialogService, $log, imageHelper, $http, $timeout, macro if (img) { var data = { - alt: img.altText, + alt: img.altText || "", src: (img.url) ? img.url : "nothing.jpg", rel: img.id, id: '__mcenew'