Skip to content

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

Open

Description

@zhaojjiang

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:

Activity

  1. idebenone commented on Nov 24, 2024

    @idebenone
    Member

    Hi @zhaojjiang,

    We don't see any use-case for converting the 'convert to' tool optional as of now. Could you please elaborate if you have any use-cases for us?

  2. zhaojjiang commented on Nov 25, 2024

    @zhaojjiang
    Author

    @idebenone just for customize,

    and as mentioned above, "convert to" should not always show even there are no conventor

  3. neSpecc commented on Nov 27, 2024

    @neSpecc
    Member

    We should not show convertTo if there is no blocks to convert to. Seems like this logic was broken.

  4. IhorKirei commented on Jan 15, 2025

    @IhorKirei

    Many use cases why it should be configurable, for example - depending on UI or user added another custom inline tool which takes care of converting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions