diff --git a/source/Ox.UI/js/Form/Ox.Editable.js b/source/Ox.UI/js/Form/Ox.Editable.js index 5259be67..70d903f7 100644 --- a/source/Ox.UI/js/Form/Ox.Editable.js +++ b/source/Ox.UI/js/Form/Ox.Editable.js @@ -180,9 +180,13 @@ Ox.Editable = function(options, self) { } function formatValue() { - return self.options.format - ? self.options.format(self.options.value) - : self.options.value + var value = self.options.value; + if (self.options.value === '' && self.options.placeholder) { + value = self.options.placeholder; + } else if (self.options.format) { + value = self.options.format(self.options.value) + } + return value; } function submit() {