forked from 0x2620/oxjs
strip tags in Ox.Editable
This commit is contained in:
parent
4dd5107a48
commit
19d5f811d6
5 changed files with 21 additions and 6 deletions
|
|
@ -80,7 +80,7 @@ Ox.Editable = function(options, self) {
|
|||
changeOnKeypress: true,
|
||||
style: 'square',
|
||||
type: self.options.type,
|
||||
value: self.options.value
|
||||
value: Ox.stripTags(self.options.value)
|
||||
}, self.options.type == 'textarea' ? {
|
||||
width: self.options.width
|
||||
} : {}))
|
||||
|
|
@ -89,7 +89,7 @@ Ox.Editable = function(options, self) {
|
|||
blur: submit,
|
||||
cancel: cancel,
|
||||
change: change,
|
||||
submit: submit
|
||||
//submit: submit
|
||||
})
|
||||
//[self.options.editing ? 'show' : 'hide']()
|
||||
.hide()
|
||||
|
|
@ -197,6 +197,9 @@ Ox.Editable = function(options, self) {
|
|||
: self.options.value
|
||||
);
|
||||
cancel();
|
||||
that.triggerEvent('submit', {
|
||||
value: self.options.value
|
||||
});
|
||||
}
|
||||
|
||||
that.css = function(obj) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue