Ox.Editable tpye=input: on submit value gets piped through Ox.encodeHTMLEntities, decode before editing
This commit is contained in:
parent
3b65b9a1c3
commit
7b24011ea1
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue