mirror of
https://github.com/codex-team/editor.js
synced 2026-03-14 22:55:47 +01:00
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:
parent
1433c1a7dc
commit
4f15bbc0cb
10 changed files with 216 additions and 59 deletions
|
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue