codex-team/editor.js

`inlineToolbar` always show convertTo, inconsist behavior with config value, and cannot be removed

Open

#2833 aperta il 29 set 2024

Vedi su GitHub
 (4 commenti) (1 reazione) (0 assegnatari)TypeScript (1985 fork)batch import
buggood first issue

Metriche repository

Star
 (26.602 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Describe a bug.

const editor = new EditorJS({
  holder: 'editor',
  tools: {
    paragraph: {
      // built-in inline tools: link, bold, italic
      // disable inline tools: false,
      inlineToolbar: ['bold', 'link'],
    },
  },
})

Expected behavior:

convertTo should also follow inlineToolbar config, which control it show or hide.

Screenshots:

image

As you see, it even show when no convertor available.

Device, Browser, OS:

Editor.js version:

Plugins you use with their versions:

Guida contributor