|
2 | 2 |
|
3 | 3 | ### 2.28.0 |
4 | 4 |
|
5 | | -- `New` - Block ids now displayed in DOM via a data-id attribute. Could be useful for plugins that want access a Block's element by id. |
6 | | -- `New` - The `blocks.convert(blockId, newType)` API method added. It allows to convert existing Block to a Block of another type. |
| 5 | +- `New` - Block ids now displayed in DOM via a data-id attribute. Could be useful for plugins that want to access a Block's element by id. |
| 6 | +- `New` - The `blocks.convert(blockId, newType)` API method was added. It allows to convert existing Block to a Block of another type. |
7 | 7 | - `New` - The `blocks.insertMany()` API method added. It allows to insert several Blocks to the specified index. |
8 | 8 | - `Improvement` - The Delete keydown at the end of the Block will now work opposite a Backspace at the start. Next Block will be removed (if empty) or merged with the current one. |
9 | 9 | - `Improvement` - The Delete keydown will work like a Backspace when several Blocks are selected. |
10 | | -- `Improvement` - If we have two empty Blocks, and press Backspace at the start of the second one, the previous will be removed instead of current. |
| 10 | +- `Improvement` - If we have two empty Blocks, and press Backspace at the start of the second one, the previous will be removed instead of the current. |
11 | 11 | - `Improvement` - Tools shortcuts could be used to convert one Block to another. |
12 | 12 | - `Improvement` - Tools shortcuts displayed in the Conversion Toolbar |
13 | 13 | - `Improvement` - Initialization Loader has been removed. |
14 | 14 | - `Improvement` - Selection style won't override your custom style for `::selection` outside the editor. |
15 | 15 | - `Improvement` - Performance optimizations: initialization speed increased, `blocks.render()` API method optimized. Big documents will be displayed faster. |
16 | 16 | - `Improvement` - "Editor saving" log removed |
17 | 17 | - `Improvement` - "I'm ready" log removed |
18 | | -- `Improvement` - The stub-block style simplified. |
19 | | -- `Improvement` - If some Block's tool will throw an error during construction, we will show Stub block instead of skipping it during render |
| 18 | +- `Improvement` - The stub-block style is simplified. |
| 19 | +- `Improvement` - If some Block's tool throws an error during construction, we will show Stub block instead of skipping it during render |
20 | 20 | - `Improvement` - Call of `blocks.clear()` now will trigger onChange with "block-removed" event for all removed blocks. |
21 | 21 | - `Improvement` - The `blocks.clear()` now can be awaited. |
22 | 22 | - `Improvement` - `BlockMutationType` and `BlockMutationEvent` types exported |
23 | 23 | - `Improvement` - `blocks.update(id, data)` now can accept partial data object — it will update only passed properties, others will remain the same. |
24 | 24 | - `Improvement` - `blocks.update(id, data)` now will trigger onChange with only `block-change` event. |
25 | | -- `Improvement` - `blocks.update(id, data)` will return a promise with BlockAPI object of changed block. |
| 25 | +- `Improvement` - `blocks.update(id, data)` will return a promise with BlockAPI object of the changed block. |
26 | 26 |
|
27 | 27 | ### 2.27.2 |
28 | 28 |
|
|
0 commit comments