Skip to content

Releases: codex-team/editor.js

v2.20.1

09 Apr 10:36
32ac52a
Compare
Choose a tag to compare
  • Fix - Create a new block when clicked at the bottom #1588.
  • Fix — Fix sanitisation problem with Inline Tools #1631
  • Fix — Fix copy in FireFox 1625
  • Refactoring - 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

04 Apr 18:17
2d89105
Compare
Choose a tag to compare
  • New — Block Tunes API introduced

v2.19.3

15 Mar 19:51
7979390
Compare
Choose a tag to compare
  • Fix — Ignore error raised by Shortcut module

v2.19.2

15 Mar 18:31
1e1b06d
Compare
Choose a tag to compare
  • New - toolbar.toggleBlockSettings() API method added #1442.
  • Improvements - A generic type for Tool config added #1516
  • Improvements - Remove unused force option in Caret.navigateNext() and Caret.navigatePrevious() #857.
  • Improvements - Remove bundles from the repo #1541.
  • Improvements - Document will be scrolled when blocks are selected with SHIFT+UP or SHIFT+DOWN #1447
  • Improvements - The caret will be set on editor copy/paste #1470
  • Improvements - 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 #1513
  • Fix - 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

04 Mar 10:15
2a2a6f1
Compare
Choose a tag to compare
v2.19.2-rc.2 Pre-release
Pre-release
  • Refactoring - The Listeners module now is util.

v2.19.2-rc.1

26 Feb 11:06
970d64e
Compare
Choose a tag to compare
v2.19.2-rc.1 Pre-release
Pre-release
  • Fix - Skipping the first interacted block on copying fixed #1549 Thanks, @hata6502

v2.19.2-rc.0

24 Feb 18:19
254a94e
Compare
Choose a tag to compare
v2.19.2-rc.0 Pre-release
Pre-release
  • New - toolbar.toggleBlockSettings() API method added #1442.
  • Improvements - A generic type for Tool config added #1516
  • Improvements - Remove unused force option in Caret.navigateNext() and Caret.navigatePrevious() #857.
  • Improvements - Remove bundles from the repo #1541.
  • Improvements - Document will be scrolled when blocks are selected with SHIFT+UP or SHIFT+DOWN #1447
  • Improvements - The caret will be set on editor copy/paste #1470
  • 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.

Release v2.19.1

08 Dec 19:18
Compare
Choose a tag to compare
  • Improvements - The Cypress was integrated as the end-to-end testing framework
  • Improvements - Native typeofreplaced with custom utils methods
  • Improvements - Bind shortcuts listeners on the editor wrapper instead of document (#1391)(#1391)
  • Fix - The problem with destroy() method #1380.
  • Fix - add getter keyword to block.mergeable method #1415.
  • Fix — Fix problem with entering to Editor.js by Tab key #1393
  • Fix - Sanitize pasted block data #1396.
  • Fix - Unnecessary block creation after arrow navigation at last non-default block#1414

Release v2.19

14 Oct 12:27
43032eb
Compare
Choose a tag to compare
  • New - Read-only mode 🥳 #837
  • New - RTL mode added #670
  • New - Allows users to provide common inlineToolbar property which will be used for all tools whose inlineToolbar property is set to true. It can be overridden by the tool's own inlineToolbar property. Also, inline tools will be ordered according to the order of the inline tools in array provided in the inlineToolbar property. #1056
  • New - Tool's reset static method added to the API to clean up any data added by Tool on initialization
  • Improvements - The initialBlock property of Editor config is deprecated. Use the defaultBlock instead. #993
  • Improvements - BlockAPI call() method now returns the result of calling method, thus allowing it to expose arbitrary data as needed #1205
  • Improvements - Unuseful log about missed i18n section has been removed #1269
  • Improvements - Allowed to set false as toolbox config in order to hide Toolbox button #1221
  • Fix — Fix problem with types usage #1183
  • Fix - Fixed issue with Spam clicking the "Click to tune" button duplicates the icons on FireFox. #1273
  • Fix - Fixed issue with editor.blocks.delete(index) method which throws an error when Editor.js is not focused, even after providing a valid index. #1182
  • Fix - Fixed the issue of toolbar not disappearing on entering input in Chinese, Hindi and some other languages. #1196
  • Fix - Do not stop events propagation if not needed (essential for React synthetic events) #1051 #946
  • Fix - Tool's destroy method is not invoked when editor.destroy() is called. #1047
  • Fix - Fixed issue with enter key in inputs and textareas #920
  • Fix - blocks.getBlockByIndex() API method now returns void for indexes out of range #1270
  • Fix - Fixed the Tab key behavior when the caret is not set inside contenteditable element, but the block is selected #1302.
  • Fix - Fixed the onChange callback issue. This method didn't be called for native inputs before some contentedtable element changed #843
  • Fix - Fixed the onChange callback issue. This method didn't be called after the callback throws an exception #1339
  • Fix - The internal shortcut getter of Tools classes will work now.
  • Deprecated — The Inline Tool clear() method is deprecated because the new instance of Inline Tools will be created on every showing of the Inline Toolbar

Release v2.18

03 Jun 09:10
63eeec0
Compare
Choose a tag to compare
  • 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