This commit is contained in:
Shannon
2015-02-13 10:36:41 +11:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
});

View File

@@ -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'