minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-06-06 04:27:11 +03:00
parent dceaf5a2a4
commit c35543e52f

View File

@ -328,15 +328,27 @@ function(text, options){
// edit the element... // edit the element...
var editable = getEditable() var editable = getEditable()
.makeEditable({ //.makeEditable({
//activate: true,
//blur_on_abort: false,
//blur_on_commit: false,
//multiline: options.multiline,
//clear_on_edit: options.clear_on_edit,
//reset_on_commit: options.reset_on_commit === undefined ?
// true
// // XXX need to take this from .makeEditable(..) defaults
// : options.reset_on_commit,
//reset_on_abort: options.reset_on_abort === undefined ?
// true
// // XXX need to take this from .makeEditable(..) defaults
// : options.reset_on_abort,
//)
// XXX is Object.assign(..) here a bit of an overkill??
.makeEditable(Object.assign({
activate: true, activate: true,
blur_on_abort: false, blur_on_abort: false,
blur_on_commit: false, blur_on_commit: false,
multiline: options.multiline, }, options))
clear_on_edit: options.clear_on_edit,
reset_on_commit: options.reset_on_commit,
reset_on_abort: options.reset_on_abort,
})
!keep_selection !keep_selection
// deselect on abort/commit... // deselect on abort/commit...