Index: webapp/components/inlineEdit/js/InlineEdit.js =================================================================== --- webapp/components/inlineEdit/js/InlineEdit.js (revision 7674) +++ webapp/components/inlineEdit/js/InlineEdit.js (working copy) @@ -117,7 +117,6 @@ var finish = function (that) { var newValue = that.editView.value(); var oldValue = that.model.value; - var viewNode = that.viewEl[0]; var editNode = that.editField[0]; var ret = that.events.onFinishEdit.fire(newValue, oldValue, editNode, viewNode); @@ -534,10 +533,14 @@ }; }; + var cleanerHTML = function (value) { + return value.replace(/\n|\t| {2,}/g, ""); + } + fluid.inlineEdit.richTextViewAccessor = function (element) { return { value: function (newValue) { - return $(element).html(newValue); + return newValue ? $(element).html(newValue) : cleanerHTML($(element).html(newValue)); } }; };