We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ko.bindingHandlers.contenteditable = { init: function(element, valueAccessor, allBindingsAccessor) { var value = ko.utils.unwrapObservable(valueAccessor()); $(element).html(value) }, update: function(element, valueAccessor) { var value = ko.utils.unwrapObservable(valueAccessor()); if ((value === null) || (value === undefined)) { value = ""; } } };