Fix— Make Toolbox tooltip position font-size independent
- New Inline Tools — pass tool settings from configuration to Tool constructor
Fix— Fix processingcolor-modfunction in styles
NewAPI - newblocksAPI methodrenderFromHTML
New— Add ability to pass configuration for internal Tools
Fix- Fix editor view on mobile devices
Fix- Fix inline toolbar buttons margin. Update dependencies list. Update tools for example page.
Fix— Block tunes margins now better works with more than 3 buttons
FixPaste — Fix pasting into non-initial Blocks
FixPaste — Polyfill for Microsoft Edge
FixRectangeSelection — Redesign of the scrolling zones
Fix- Clear focus when click is outside the Editor instance
Fix— Fix CMD+A Selection on multiple Editor instances
Improvements— Docs updated and common enhancements
FixRectangeSelection — Selection is available only for the main mouse button
New— Add API methods shorthands
New— Rename from CodeX Editor to Editor.js
New— Toolbox now have beautiful helpers with Tool names and shortcuts
Improvements— Prevent navigating back on Firefox when Block is removing by backspace
Fix— Handle paste only on initial Block
New— Blocks selected with Rectangle Selection can be also removed, copied or cut
Improvements— Migrate frompostcss-cssnexttopostcss-preset-envand disablepostcss-custom-propertieswhich conflicts withpostcss-preset-env
NewRectangeSelection — Ability to select Block or several Blocks with mouse
FixCaret — Fix "History back" call on backspace in Firefox
ImporvementsAPI — Added API methods to manage caret position
ImprovementsTypes — TypeScript types sre updated
Fix— Caret now goes through elements withouttypeattribute
Fix— Fixed selection behavior when text has modifiers form Inline Toolbar
Fix— cmd+x works only for custom selection now
NewTools Validation is added.
NewMobile view — Editor now adopted for mobile devicesNewNarrow mode — Editor now adopted for narrow containers
ImprovementsCaret — Improvements of the caret behaviour: arrows, backspace and enter keys better handling.
NewAutofocus — Now you can set focus at Editor after page has been loaded
ImprovementsPaste handling — minor paste handling improvements
NewShortcuts — copy and cut Blocks selected by CMD+A
NewSanitize API — Sanitize Config ofBlock Toolsnow automatically extends by tags ofInline Toolsthat is enabled by current Tool byinlineToolbaroption. You don't need more to specifya, b, mark, codemanually. This feature will be added to fields that supports inline markup.NewBlock Selection — Ability to select Block byCMD+A, and the whole Editor by doubleCMD+A. After that, you can copy (CMD+C), remove (Backspace) or clear (Enter) selected Blocks.NewStyles API — Addedbuttonclass for stylization of any buttons provided by Tools with one unified style.NewNotifier API — methods for showing user notifications: on success, errors, warnings, etc.NewBlock Tool — Table constructor 💪NewIf one of the Tools is unavailable on Editor initialization, its Blocks will be rendered with Dummy Block, describing that user can not edit content of this Block. Dummy Blocks can be moved, removed and saved as normal Blocks. So saved data won't be lost if one of the Tools is failedNewPublic TS-types are presented.ChangesTools API — optionsirreplaceableandcontentlesswas removed.ChangesTools API — Paste API: tags, patterns and mime-types now should be specified by Tool'spasteConfigstatic property. Custom Paste Event should be handled byonPaste(event)that should not be static from now.ChangesTools API — optionsdisplayInToolboxandtoolboxIconwas removed. Usetoolboxinstead, that should return object withiconandtitlefield, orfalseif Tool should not be placed at the Toolbox. Also, there are a way to overridetoolbox {icon, title}settings provided by Tool with you own settings at the Initial Config.Improvements— All Projects code now on TypeScriptImprovements— NPM package size decreased from 1300kb to 422kbImprovements— Bundle size decreased from 438kb to 252kbImprovements—Inline Toolbar: when you add a Link to the selected fragment, Editor will highlight this fragment even when Caret is placed into the URL-input.Improvements— Block Settings won't be shown near empty Blocks ofinitialTypeby default. You should click on them instead.Improvements—onChange-callback now will be fired even with children attributes changing.Improvements— HTMLJanitor package was updated due to found vulnerabilityImprovements— Logging improved: now all Editor's logs will be preceded by beautiful label with current Editor version.Improvements— InternalisEmptychecking was improved for Blocks with many children nodes (200 and more)Improvements— Paste improvements: tags that can be substituted by Tool now will matched even on deep-level of pasted DOM three.Improvements— There is no more «unavailable» sound on copying Block byCMD+Con macOSImprovements— Dozens of bugfixes and small improvements
See a whole Changelog
NewTools API — support pasted content via drag-n-drop or from the Buffer. See documentation and example at the Simple Image Tool.NewTools API — newsanitizegetter for Tools for automatic HTML sanitizing of returned data. See documentation and example at the Paragraph ToolNewAddedonChange-callback, fired after any modifications at the Editor. See documentation.NewNew Inline Tool example — MarkerNewNew Inline Tool example — CodeNewNew Editor.js PHP — example of server-side implementation with HTML purifying and data validation.Improvements- Improvements of Toolbar's position calculation.Improvements— Improved zero-configuration initialization.- and many little improvements.