Releases: codex-team/editor.js
Releases · codex-team/editor.js
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 unusedforceoption inCaret.navigateNext()andCaret.navigatePrevious()#857.Improvements- Remove bundles from the repo #1541.Improvements- Document will be scrolled when blocks are selected withSHIFT+UPorSHIFT+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 unusedforceoption inCaret.navigateNext()andCaret.navigatePrevious()#857.Improvements- Remove bundles from the repo #1541.Improvements- Document will be scrolled when blocks are selected withSHIFT+UPorSHIFT+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- Nativetypeofreplaced 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.mergeablemethod #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 commoninlineToolbarproperty which will be used for all tools whoseinlineToolbarproperty is set totrue. It can be overridden by the tool's owninlineToolbarproperty. Also, inline tools will be ordered according to the order of the inline tools in array provided in theinlineToolbarproperty. #1056New- Tool'sresetstatic method added to the API to clean up any data added by Tool on initializationImprovements- TheinitialBlockproperty of Editor config is deprecated. Use thedefaultBlockinstead. #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 setfalseastoolboxconfig 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'sdestroymethod 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 theTabkey behavior when the caret is not set inside contenteditable element, but the block is selected #1302.Fix- Fixed theonChangecallback issue. This method didn't be called for native inputs before some contentedtable element changed #843Fix- Fixed theonChangecallback issue. This method didn't be called after the callback throws an exception #1339Fix- The internalshortcutgetter 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
NewI18n 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.deletemethod 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 havedestroymethod 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 withtoolsobject keys order #1073Fix- Settingautofocusconfig property totruecause adding.ce-block--focusedfor the autofocused block #1073Fix- Public gettershortcutnow works for Inline Tools #1132Fix-CMD+Ahandler removed after Editor.js destroy #1133
Breaking changes
blocks.getBlockByIndexmethod now returns BlockAPI object. To access old value, use BlockAPI.holder property
Release v2.17
Improvements- Editor's onchange callback now accepts an API as a parameterFix- Some mistakes are fixed in installation.mdFix- Fixed multiple paste callback triggering in a case when several editors are instantiated #1011Fix- Fixed inline toolbar flipper activation on closing conversion toolbar #995Improvements- New window tab is opened by clicking on anchor with ctrl #1057Fix- Fix block-tune buttons alignment in some CSS-resetors that forces box-sizing: border-box rule #1003Improvements- New style of a Block Settings button. Focused block background removed.New— Add in-house copy-paste support through application/x-editor-js mime-typeImprovements- New Block lifecycle hook moved. Deprecated — blocks.swap(fromIndex, toIndex) method is deprecated. Use blocks.move(toIndex, fromIndex) instead.Fix— Improve plain text paste #1012Fix— Fix multiline paste #1015