Releases: codex-team/editor.js
Releases · codex-team/editor.js
v2.20.1
Fix
- Create a new block when clicked at the bottom #1588.Fix
— Fix sanitisation problem with Inline Tools #1631Fix
— Fix copy in FireFox 1625Refactoring
- The Sanitizer module is util now.Refactoring
- Tooltip module is util now.Refactoring
— Refactoring based on LGTM #1577.Refactoring
— Refactoring based on ESLint #1636.
v2.20.0
New
— Block Tunes API introduced
v2.19.3
Fix
— Ignore error raised by Shortcut module
v2.19.2
New
-toolbar.toggleBlockSettings()
API method added #1442.Improvements
- A generic type for Tool config added #1516Improvements
- Remove unusedforce
option inCaret.navigateNext()
andCaret.navigatePrevious()
#857.Improvements
- Remove bundles from the repo #1541.Improvements
- Document will be scrolled when blocks are selected withSHIFT+UP
orSHIFT+DOWN
#1447Improvements
- The caret will be set on editor copy/paste #1470Improvements
- Added generic types to OutputBlockData #1551.Fix
- Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances #1503.Fix
- Fix an unstable block cut process #1489.Fix
- Type definition of the Sanitizer config: the sanitize function now contains param definition #1491.Fix
- Fix unexpected behavior on an empty link pasting #1348.Fix
- Fix SanitizerConfig type definition #1513Fix
- Editor Config now immutable #1552.Fix
- Fix bubbling on BlockManagers' listener #1433.Refactoring
- The Listeners module now is util.Refactoring
- The Events module now is util.Refactoring
- Shortcuts module is util now.
v2.19.2-rc.2
Refactoring
- The Listeners module now is util.
v2.19.2-rc.1
v2.19.2-rc.0
New
-toolbar.toggleBlockSettings()
API method added #1442.Improvements
- A generic type for Tool config added #1516Improvements
- Remove unusedforce
option inCaret.navigateNext()
andCaret.navigatePrevious()
#857.Improvements
- Remove bundles from the repo #1541.Improvements
- Document will be scrolled when blocks are selected withSHIFT+UP
orSHIFT+DOWN
#1447Improvements
- The caret will be set on editor copy/paste #1470Fix
- Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances #1503.Fix
- Fix an unstable block cut process #1489.Fix
- Type definition of the Sanitizer config: the sanitize function now contains param definition #1491.Fix
- Fix unexpected behavior on an empty link pasting #1348.
Release v2.19.1
Improvements
- The Cypress was integrated as the end-to-end testing frameworkImprovements
- Nativetypeof
replaced with custom utils methodsImprovements
- Bind shortcuts listeners on the editor wrapper instead of document (#1391)(#1391)Fix
- The problem with destroy() method #1380.Fix
- add getter keyword toblock.mergeable
method #1415.Fix
— Fix problem with entering to Editor.js by Tab key #1393Fix
- Sanitize pasted block data #1396.Fix
- Unnecessary block creation after arrow navigation at last non-default block#1414
Release v2.19
New
- Read-only mode 🥳 #837New
- RTL mode added #670New
- Allows users to provide commoninlineToolbar
property which will be used for all tools whoseinlineToolbar
property is set totrue
. It can be overridden by the tool's owninlineToolbar
property. Also, inline tools will be ordered according to the order of the inline tools in array provided in theinlineToolbar
property. #1056New
- Tool'sreset
static method added to the API to clean up any data added by Tool on initializationImprovements
- TheinitialBlock
property of Editor config is deprecated. Use thedefaultBlock
instead. #993Improvements
- BlockAPIcall()
method now returns the result of calling method, thus allowing it to expose arbitrary data as needed #1205Improvements
- Unuseful log about missed i18n section has been removed #1269Improvements
- Allowed to setfalse
astoolbox
config in order to hide Toolbox button #1221Fix
— Fix problem with types usage #1183Fix
- Fixed issue with Spam clicking the "Click to tune" button duplicates the icons on FireFox. #1273Fix
- Fixed issue witheditor.blocks.delete(index)
method which throws an error when Editor.js is not focused, even after providing a valid index. #1182Fix
- Fixed the issue of toolbar not disappearing on entering input in Chinese, Hindi and some other languages. #1196Fix
- Do not stop events propagation if not needed (essential for React synthetic events) #1051 #946Fix
- Tool'sdestroy
method is not invoked wheneditor.destroy()
is called. #1047Fix
- Fixed issue with enter key in inputs and textareas #920Fix
- blocks.getBlockByIndex() API method now returns void for indexes out of range #1270Fix
- Fixed theTab
key behavior when the caret is not set inside contenteditable element, but the block is selected #1302.Fix
- Fixed theonChange
callback issue. This method didn't be called for native inputs before some contentedtable element changed #843Fix
- Fixed theonChange
callback issue. This method didn't be called after the callback throws an exception #1339Fix
- The internalshortcut
getter of Tools classes will work now.Deprecated
— The Inline Toolclear()
method is deprecated because the new instance of Inline Tools will be created on every showing of the Inline Toolbar
Release v2.18
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