codex-team / codex-team/editor.js

Inline tool from the documentation doesn't work in latest version

Open
#2,827 3 comments 0 reactions 0 assignees View on GitHub
good first issue issue for docs
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Hi,

I'm following the tutorial from the docs to create a [marker inline tool](https://editorjs.io/inline-tool-user-interaction/). 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:
1. Try this code sandbox with the tool code from the docs https://codesandbox.io/p/sandbox/editor-js-forked-pyk98w
2. Add some text and add a mark from inline tool
![image](https://github.com/user-attachments/assets/9271e36e-ba3d-4531-b7b5-c734cb3ab82f)
3. Color picker is diplayed but disappears.
4. Go to package.json and change editorjs version to 2.15.1
`"@editorjs/editorjs": "2.15.1",`
5. 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.