codex-team/editor.js

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

Open

#2,827 创建于 2024年9月23日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (26,602 star) (1,985 fork)batch import
good first issueissue for docs

描述

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:

  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
  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

贡献者指南

Inline tool from the documentation doesn't work in latest version · codex-team/editor.js#2827 | Good First Issue