Inline tool from the documentation doesn't work in latest version
#2,827 opened on Sep 23, 2024
Description
Hi,
I'm following the tutorial from the docs to create a marker inline tool. With the exact same code, when I click on the marker button, the color picker is quickly displayed, then disappears, so it can't be used. The doc was last updated several years ago, and works fine with older versions of Editor.js, but not with latest ones. It makes it harder to create my own inline tool.
Steps to reproduce:
- Try this code sandbox with the tool code from the docs https://codesandbox.io/p/sandbox/editor-js-forked-pyk98w
- Add some text and add a mark from inline tool
- Color picker is diplayed but disappears.
- Go to package.json and change editorjs version to 2.15.1
"@editorjs/editorjs": "2.15.1", - If you try again, the color picker of the marker works well.
Editor.js version: 2.30.6
The color plugin I use doesn't work anymore since latest Editor.js updates, see these issues: https://github.com/flaming-cl/editorjs-text-color-plugin/issues/36 https://github.com/flaming-cl/editorjs-text-color-plugin/issues/35#issuecomment-1948699329
So I don't know how to implement a color picker with Editor.js v2.30+.
Thanks