You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(toolbar): toolbar refactored and ui improved (#1815)
* chore(block-tune-toggler): toggler moved to the left (draft)
* toolbox ui updated
* fixd caret jumpling, improved some styles
* toolbar moving by block-hover
- UI module triggers 'block-hovered' event
- Toolbar uses 'block-hovered' for appearing
- `currentBlock` setter added to the BlockManager
- (reactangle-selection): the throttling added to the mousemove and scroll handlers
- `getBlockIndex` method added to the Api
- (api-blocks): toolbar moving logic removed from `blocks.move()` and `blocks.swap()` methods. Instead, MoveUp and MoveDown tunes uses Toolbar API
* the dark-theme to the example-dev.html
* positioning improved
* fix(rectangle-selection): first click after RS does not clears selection state
* toolbox position fixed
* the toolbox module became a standalone class
- Toolbox became a standalone class from the editor module. It can be accessed only via the owner (the Toolbar module)
- (api.blocks) the insert() method now has the `replace` param. Also, it returns inserted Block API now.
* new(api.listeners): `on()` now returns the listener id. The new `offById()` method added
* fix bug with Tab pressing on hovered but not focused block
* mobile version improved
* upd example dev
* small updaets
* add nested-list
* linting
* (api.toolbar): `toggleBlockSettings` now fires toggling event with the same state
* EventDispatcher used instead of callbacks for the Toolbox
* UIApi added
* fix ci
* git submodules removed from the ci flow
* add paragraph submodule to the ci flow
* Update CHANGELOG.md
* Update package.json
* use ubuntu-latest for chrome ci
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,24 @@
2
2
3
3
### 2.23.0
4
4
5
-
-`Improvement` — The `onChange` callback now accepts two arguments: EditorJS API and the CustomEvent with `type` and `detail` allowing to determine what happened with a Block
6
-
-`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.
5
+
-`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
6
+
-`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.
7
+
-`Improvement` — *UI* — Block Tunes toggler moved to the left
8
+
-`Improvement` — *UI* — Block Actions (BT toggler + Plus Button) will appear on block hovering instead of click
9
+
-`Improvement` — *UI* — Block Tunes toggler icon and Plus button icon updated
10
+
-`Improvement` — *Dev Example Page* — The menu with helpful buttons added to the bottom of the screen
11
+
-`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.
14
+
-`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).
15
+
-`New` — *Blocks API* — The `getBlockIndex()` method added
16
+
-`New` — *Blocks API* — the `insert()` method now has the `replace: boolean` parameter
17
+
-`New` — *Blocks API* — the `insert()` method now returns the inserted `Block API`
18
+
-`New` — *Listeners API* — the `on()` method now returns the listener id.
19
+
-`New` — *Listeners API* — the new `offById()` method added
20
+
-`New` — `API` — The new `UiApi` section was added. It allows accessing some editor UI nodes and methods.
21
+
-`Refactoring` — Toolbox became a standalone class instead of a Module. It can be accessed only through the Toolbar module.
0 commit comments