Return false to cancel changes not working on preEdit
Return false to cancel changes not working on preEdit
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.
This discussion has been closed.
Answers
preEditisn'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