editor.js/src/components/modules/api
Peter Savchenko 922dfd8741
chore(api): blocks.update(id, data) method improved (#2443)
* add custom Chai assertion "be.calledWithBatchedEvents" for testing onchange

* chore(api): blocks.update(id, data) method improved

- `blocks.update(id, data)` now can accept partial data object — it will update only passed properties, others will remain the same.
- `blocks.update(id, data)` now will trigger onChange with only `block-change` event.
- `blocks.update(id, data)` will return a promise with BlockAPI object of changed block.

* fix tests

* Update blocks.cy.ts
2023-08-19 07:53:42 +03:00
..
blocks.ts chore(api): blocks.update(id, data) method improved (#2443) 2023-08-19 07:53:42 +03:00
caret.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
events.ts refactoring(modules): Events module is util now (#1582) 2021-03-15 21:01:10 +03:00
i18n.ts Fix i18n for tunes and tools (#1711) 2021-06-28 13:06:35 +03:00
index.ts feat(toolbar): toolbar refactored and ui improved (#1815) 2021-11-24 21:14:24 +03:00
inlineToolbar.ts Release: 2.19 (#1364) 2020-10-13 20:50:46 +03:00
listeners.ts feat(toolbar): toolbar refactored and ui improved (#1815) 2021-11-24 21:14:24 +03:00
notifier.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
readonly.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
sanitizer.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
saver.ts Release: 2.19 (#1364) 2020-10-13 20:50:46 +03:00
selection.ts chore(linting): eslint updated, code linted (#2174) 2022-11-25 21:56:50 +04:00
styles.ts Release: 2.19 (#1364) 2020-10-13 20:50:46 +03:00
toolbar.ts feat(toolbar-api): method for toggling toolbox (#2332) 2023-04-13 20:02:46 +03:00
tooltip.ts feat(toolbar): toolbar refactored and ui improved (#1815) 2021-11-24 21:14:24 +03:00
ui.ts feat(toolbar): toolbar refactored and ui improved (#1815) 2021-11-24 21:14:24 +03:00