feat(onchange): callback now accepts custom event (#1791)

* feat(onchange): callback now accepts custom event

* Delete block-added.ts

* testd updated, changelog added

* Update example-dev.html

* indexes added to all events

* block-removed dispatching on block replacing

* Update example-dev.html
This commit is contained in:
Peter Savchenko 2021-10-05 20:40:44 +03:00 committed by GitHub
commit 4f15bbc0cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 216 additions and 59 deletions

View file

@ -318,8 +318,8 @@
onReady: function(){
saveButton.click();
},
onChange: function(api, block) {
console.log('something changed', block);
onChange: function(api, event) {
console.log('something changed', event);
},
});

View file

@ -281,8 +281,8 @@
onReady: function(){
saveButton.click();
},
onChange: function(api, block) {
console.log('something changed', block);
onChange: function(api, event) {
console.log('something changed', event);
}
});