codex-team/editor.js

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

Open

#2.827 aberto em 23 de set. de 2024

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (1.985 forks)batch import
good first issueissue for docs

Métricas do repositório

Stars
 (26.602 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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:

  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

Guia do colaborador