Skip to content

v2.26.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Nov 18:13
320a30a

image

  • NewUI — Block Tunes became vertical just like the Toolbox 🤩
  • NewBlock Tunes API — Now the render() 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.
  • NewTools API — As well as render() in Tunes API, Tool's renderSettings() now also supports new configuration format.
  • NewUI — Meet the new icons from CodeX Icons pack 🛍 💝
  • NewBlocksAPI — the blocks.insert() method now also have the optional id param. If passed, this id will be used instead of the generated one.
  • DeprecatedStyles 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.
  • ImprovementTools APIpasteConfig().tags now support sanitizing configuration. It allows you to leave some explicitly specified attributes for pasted content.
  • ImprovementCodeStyleCodeX ESLint Config has bee updated. All ESLint/Spelling issues resolved
  • ImprovementToolsAPI — The icon property of the toolbox 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) added
  • Fix — Toolbox shortcuts appearance and execution fixed #2112
  • Fix — 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