Ox.Editable tpye=input: on submit value gets piped through Ox.encodeHTMLEntities, decode before editing

This commit is contained in:
j 2015-01-09 18:53:17 +01:00
parent 3b65b9a1c3
commit 7b24011ea1

View file

@ -202,7 +202,7 @@ Ox.Editable = function(options, self) {
function formatInputValue() { function formatInputValue() {
return self.options.type == 'input' return self.options.type == 'input'
? (self.options.unformat || Ox.identity)(self.options.value) ? (self.options.unformat || Ox.decodeHTMLEntities)(self.options.value)
: self.options.value.replace(/<br\/?><br\/?>/g, '\n\n'); : self.options.value.replace(/<br\/?><br\/?>/g, '\n\n');
} }