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

Hide some buttons from text editor #182

Open
apodacaduron opened this issue Jun 6, 2021 · 2 comments · May be fixed by #183
Open

Hide some buttons from text editor #182

apodacaduron opened this issue Jun 6, 2021 · 2 comments · May be fixed by #183

Comments

@apodacaduron
Copy link

apodacaduron commented Jun 6, 2021

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 apodacaduron linked a pull request Jun 6, 2021 that will close this issue
@michelson
Copy link
Owner

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

@rjvim
Copy link

rjvim commented Jun 20, 2021

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.

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

Successfully merging a pull request may close this issue.

3 participants