v2.26.0
New
— UI — Block Tunes became vertical just like the Toolbox 🤩New
— Block Tunes API — Now therender()
method of a Block Tune can return the Menu Config with just icon, label, and callback instead of custom HTML. This improvement is key to the new straightforward way of configuring the tune's appearance in the Block Tunes menu.New
— Tools API — As well asrender()
inTunes API
, Tool'srenderSettings()
now also supports new configuration format.New
— UI — Meet the new icons from CodeX Icons pack 🛍 💝New
— BlocksAPI — theblocks.insert()
method now also have the optionalid
param. If passed, this id will be used instead of the generated one.Deprecated
— Styles API — CSS classes.cdx-settings-button
and.cdx-settings-button--active
are not recommended to use. Consider configuring your block settings with a new JSON API instead.Improvement
— Tools API —pasteConfig().tags
now support sanitizing configuration. It allows you to leave some explicitly specified attributes for pasted content.Improvement
— CodeStyle — CodeX ESLint Config has bee updated. All ESLint/Spelling issues resolvedImprovement
— ToolsAPI — Theicon
property of thetoolbox
getter became optional.Fix
— The wrong element is not highlighted anymore when the popover opened.Fix
— When Tunes Menu open keydown events can not be handled inside plugins.Fix
— If a Tool specifies some tags to substitute on paste, all attributes of that tags will be removed before passing them to the tool. Possible XSS vulnerability fixed.Fix
— Pasting from Microsoft Word to Chrome (Mac OS) fixed. Now if there are no image-tools connected, the regular text content will be pasted.Fix
— Workaround for the HTMLJanitor bug with Tables (guardian/html-janitor#3) addedFix
— Toolbox shortcuts appearance and execution fixed #2112Fix
— Inline Tools click handling on mobile devices improved
💌 Read about the new Menu Config feature for defining Block Tunes menu appearance:
https://codex.so/editorjs-menu-config