Return false to cancel changes not working on preEdit
Return false to cancel changes not working on preEdit
flaviaazevedo
Posts: 2Questions: 2Answers: 0
in Editor
editor.on( 'preEdit', function (e, json, data, id) {
console.log(editor.field( 'position' ).val());
console.log(data)
return false;
});
This produce changes on the datatables when would shall not.
Answers
preEdit
isn't cancellable - the events page show in brackets which ones are. Without knowing more about your use- case, you would probably want to usepreOpen
, which is cancellable - you can checkaction
(the third parameter) to see if an edit is taking place,Colin