Editor.js v2.18.0 Release NotesRelease Date: 2020-06-03 // over 1 year ago
NewI18n 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.deletemethod 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
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
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
destroymethod 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
toolsobject keys order #1073
autofocusconfig property to
.ce-block--focusedfor the autofocused block #1073
Fix- Public getter
shortcutnow works for Inline Tools #1132
CMD+Ahandler removed after Editor.js destroy #1133
💥 Breaking changes
blocks.getBlockByIndexmethod now returns BlockAPI object. To access old value, use BlockAPI.holder property