Editor.js v2.18.0 Release Notes

Release Date: 2020-06-03 // 4 months ago
    • New I18n API โ€” Ability to provide internalization for Editor.js core and tools. #751
    • New โ€” Block API that allows you to access certain Block properties and methods
    • ๐Ÿ‘• Improvements - TSLint (deprecated) replaced with ESLint, old config changed to CodeX ESLint Config.
    • ๐Ÿ’… Improvements - Fix many code-style issues, add missed annotations.
    • ๐Ÿ‘• Improvements - Adjusted GitHub action for ESLint.
    • โš  Improvements - Blocks API: if blocks.delete method is called, but no Block is selected, show warning instead of throwing an error #1102
    • Improvements - Blocks API: allow deletion of blocks by specifying block index via blocks.delete(index).
    • Improvements - UX: Navigate next Block from the last non-initial one creates new initial Block now #1103
    • ๐ŸŽ Improvements - Improve performance of DOM traversing at the isEmpty() method #1095
    • Improvements - CODE OF CONDUCT added
    • ๐Ÿ”Œ Improvements - Disabled useCapture flag for a block keydown handling. That will allow plugins to override keydown and stop event propagation, for example, to make own Tab behavior.
    • Improvements - All modules now might have destroy method called on Editor.js destroy
    • โช Improvements - Block settings can contain text inputs, focus will be restored after settings closed #1090
    • ๐Ÿ’… Fix - Editor's styles won't be appended to the <head> when another instance have already do that #1079
    • ๐Ÿ›  Fix - Fixed wrong toolbar icon centering in Firefox #1120
    • Fix - Toolbox: Tool's order in Toolbox now saved in accordance with tools object keys order #1073
    • Fix - Setting autofocus config property to true cause adding .ce-block--focused for the autofocused block #1073
    • Fix - Public getter shortcut now works for Inline Tools #1132
    • ๐Ÿšš Fix - CMD+A handler removed after Editor.js destroy #1133

    ๐Ÿ’ฅ Breaking changes

    • blocks.getBlockByIndex method now returns BlockAPI object. To access old value, use BlockAPI.holder property

Previous changes from v2.17

    • Improvements - Editor's onchange callback now accepts an API as a parameter
    • ๐Ÿ›  Fix - Some mistakes are fixed in installation.md
    • ๐Ÿ›  Fix - Fixed multiple paste callback triggering in a case when several editors are instantiated #1011
    • ๐Ÿ›  Fix - Fixed inline toolbar flipper activation on closing conversion toolbar #995
    • Improvements - New window tab is opened by clicking on anchor with ctrl #1057
    • Fix - Fix block-tune buttons alignment in some CSS-resetors that forces box-sizing: border-box rule #1003
    • ๐Ÿ’… Improvements - New style of a Block Settings button. Focused block background removed.
    • ๐Ÿ‘ New โ€” Add in-house copy-paste support through application/x-editor-js mime-type
    • ๐Ÿšš Improvements - New Block lifecycle hook moved. Deprecated โ€” blocks.swap(fromIndex, toIndex) method is deprecated. Use blocks.move(toIndex, fromIndex) instead.
    • Fix โ€” Improve plain text paste #1012
    • Fix โ€” Fix multiline paste #1015