Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable converter in inline toolbar for some specific tools #2781

Open
Malimalo opened this issue Jul 17, 2024 · 1 comment
Open

Disable converter in inline toolbar for some specific tools #2781

Malimalo opened this issue Jul 17, 2024 · 1 comment

Comments

@Malimalo
Copy link

I developed a simple tool to have some thing structured and formatted with multiple simple text fields.
I don't want to handle the conversion of this type of block and I want to keep the inline toolbar for formatting.

I tried multiple things and I ended up adding custom styles to hide the converter tool button:

/* Hide the "Convert to" button */
button[data-item-name="convert-to"] {
  display: none !important;
}

/* Hide the separator */
.ce-popover-item-separator {
  display: none !important;
}

I've seen #2262 and I want to de exactly the opposite. In the documentation, the converter is not shown on the screenshots...
image

How can I do this ?

@Malimalo Malimalo changed the title Deactivate converter in inline toolbar for some specific tools Disable converter in inline toolbar for some specific tools Jul 17, 2024
@minhduc68
Copy link

minhduc68 commented Jul 18, 2024

+1 Same issue here. For me, the converter is not useful with the image block since the end user can simply delete it instead of converting it to another block type. Therefore, I want to hide the converter (see the image below)
Screenshot 2024-07-18 at 10 50 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants