Release v2.18
·
26 commits
to release/2.18
since this release
New
I18n API — Ability to provide internalization for Editor.js core and tools. #751New
— Block API that allows you to access certain Block properties and methodsImprovements
- 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: ifblocks.delete
method is called, but no Block is selected, show warning instead of throwing an error #1102Improvements
- Blocks API: allow deletion of blocks by specifying block index viablocks.delete(index)
.Improvements
- UX: Navigate next Block from the last non-initial one creates new initial Block now #1103Improvements
- Improve performance of DOM traversing at theisEmpty()
method #1095Improvements
- CODE OF CONDUCT addedImprovements
- 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 havedestroy
method called on Editor.js destroyImprovements
- Block settings can contain text inputs, focus will be restored after settings closed #1090Fix
- Editor's styles won't be appended to the<head>
when another instance have already do that #1079Fix
- Fixed wrong toolbar icon centering in Firefox #1120Fix
- Toolbox: Tool's order in Toolbox now saved in accordance withtools
object keys order #1073Fix
- Settingautofocus
config property totrue
cause adding.ce-block--focused
for the autofocused block #1073Fix
- Public gettershortcut
now works for Inline Tools #1132Fix
-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