Dante icon indicating copy to clipboard operation
Dante copied to clipboard

Hide some buttons from text editor

Open apodacaduron opened this issue 3 years ago • 2 comments

Is there a way to disable specific buttons? For example if i dont want to show the mic recorder button or even the whole plus button from the left, or hide the button to switch text color.

We could override it with css by taking the easy way but all of the classes for buttons are exactly the same

Currently class="dante-menu-button" to something like class="dante-menu-button dante-menu-button--fontcolor"

I could work on it but if you could let me know what files do i need to change it would be great.

Edit: I found where, working on it...

Pull Request Here

apodacaduron avatar Jun 06 '21 17:06 apodacaduron

Hola Daniel! I will make the menu more configurable as implemented in dante2, I will expect to deliver this soon , if you want to check out how the previous menu was made check this https://github.com/michelson/Dante/blob/master/packages/dante2/src/editor/components/popovers/toolTip.js#L407-L461 in dante2 the menu was configurable via options. I will do the same for dante3

michelson avatar Jun 06 '21 20:06 michelson

Screenshot 2021-06-20 at 9 32 22 AM

Is there a way to completely remove the left side: "+" icon, as in support no widgets?

Even if I supply widgets={[]}, + icon anyway shows up.

rjvim avatar Jun 20 '21 04:06 rjvim