Releases: codex-team/editor.js
Releases · codex-team/editor.js
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
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
Release v2.15.1
New
— New blocks.insert() API method #715.New
Conversion Toolbar. Ability to convert one block to another #704New
Cross-block selection — Ability to select multiple blocks by mouse and with SHIFT+ARROWS #703Deprecated
— blocks.insertNewBlock() method is deprecated. Use blocks.insert() instead.Improvements
— Inline Toolbar now works on mobile devices #706Improvements
— Toolbar looks better on mobile devices #706Improvements
— Now pasteConfig can return false to disable paste handling on your Tool #801Fix
— EditorConfig's onChange callback now fires when native inputs` content has been changed #794Fix
— Resolve bug with deleting leading new lines #726Fix
— Fix inline link Tool to support different link types like mailto and tel #809Fix
— Added typeof util method to check exact object type #805Fix
— Remove internal enableLineBreaks option from external Tool settings type description #825Refactoring
— Constants of tools settings separated by internal and external to correspond APIRefactoring
— Created universal Flipper class that responses for navigation by keyboard inside of any ToolbarsFix
— First CMD+A on block with now uses default behaviour. Fixed problem with second CMD+A after selection clearing #827Improvements
— Style of inline selection and selected blocks improved
Fix - Fixed problem when property 'observer' in modificationObserver is not defined
v1.5
1.4 Stable
CodeX Editor release