Hi there! We're celebrating reaching of 18k stars on GitHub releasing the new 2.23 version. There are bunch of updates.
Improvement โ EditorConfig โ The `onChange` callback now accepts two arguments: EditorJS API and the CustomEvent with `type` and `detail` allowing to determine what happened with a Block
New โ Block API โ The new `dispatchChange()` method allows to manually trigger the 'onChange' callback. Useful when Tool made a state mutation that is invisible for editor core.
Improvement โ UI โ Block Tunes toggler moved left
Improvement โ UI โ Block Actions (BT toggler + Plus Button) will appear on block hovering instead of click
Improvement โ UI โ Block Tunes toggler icon and Plus button icon updated
Improvement โ Dev Example Page โ The menu with helpful buttons added to the bottom of the screen
Improvement โ Dev Example Page โ The 'dark' theme added. Now we can code at night more comfortably.
Fix โ Rectangle Selection โ the first click after RS was not clear selection state. Now does.
Improvement โ Blocks API โ toolbar moving logic removed from `blocks.move()` and `blocks.swap()` methods. Instead, you should use Toolbar API (it was used by MoveUp and MoveDown tunes, they were updated).
New โ Blocks API โ The `getBlockIndex()` method added
New โ Blocks API โ the `insert()` method now has the `replace: boolean` parameter
New โ Blocks API โย the `insert()` method now returns the inserted `Block API`
New โ Listeners API โ the `on()` method now returns the listener id.
New โ Listeners API โ the new `offById()` method added
New โ API โ The new `UiApi` section was added. It allows accessing some editor UI nodes and methods.
Refactoring โ Toolbox became a standalone class instead of a Module. It can be accessed only through the Toolbar module.
Refactoring โ CI flow optimized.
Fix - Recognize async `onPaste` handlers in tools #1803.
Fix โ Fire onChange event for native inputs #1750ย
And also, we added the Roadmap section to our Readme. There are some big tasks we're already working on. ๐