github codex-team/editor.js v2.27.0-rc.5

latest releases: v2.31.0-rc.5, v2.30.7, v2.31.0-rc.4...
pre-release18 months ago
  • ImprovementBreaking Change — Batching added to the onChange callback. Now the second argument can contain an array of CustomEvents as well as a single one. If several changes will be made in short period of time, they will be batched under the single onChange call
  • Improvement — Pressing "Enter" at the end of a Block won't lead to redundant block-changed event triggering. Only block-added event will be dispatched.
  • Fix — The onChange won't be triggered with Block Tunes opening and closing.
  • RefactoringEventDispatcher types improved. Now we can pass EventsMap via generic to specify a map of event names and their payloads that can be used in a particular EventDispatcher instance.
  • Refactoring — All events in common editor Event Bus now have own type declarations.
  • Refactoring — Now Blocks don't have own Mutation Observer. The single observer attached to the editor's blocks wrapper element. ModificationsObserver listens blocks wrapper changes, then emits an event into the common editor Event Bus. Each Block subscribes to such events and handle those who related to a particular Block.
  • Improvement — Block's mutation handler now will be called on every block change (including background changes). Previously, it have worked only if a particular Block have been focused.
  • Refactoring — Debounce have been removed from Block's mutation handler. The batching in ModificationObserver used instead.
  • Improvement — Number of caret saving method calls optimized for Block Tunes opening/closing.
  • New — Types for Block mutation events added.
  • Fix- Several bugs caused by random browser extensions. Now we are not searching for a block's container in the DOM on saving. Instead, we keep it in memory and update it when the tool changes a container element.

Don't miss a new editor.js release

NewReleases is sending notifications on new releases.