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

[QUESTION] Remove styles from StyleButtons #127

Closed
DasElias opened this issue Sep 5, 2021 · 1 comment
Closed

[QUESTION] Remove styles from StyleButtons #127

DasElias opened this issue Sep 5, 2021 · 1 comment
Labels
question Further information is requested

Comments

@DasElias
Copy link

DasElias commented Sep 5, 2021

Is it possible to remove the "Quote" and the "Code" style from StyleButtons? Unfortunately, in the documentation I haven't found anything.

Thanks in advance.

@DasElias DasElias added the question Further information is requested label Sep 5, 2021
@tneotia
Copy link
Owner

tneotia commented Sep 5, 2021

You can follow #59 (comment) for this. That answer is structured for adding custom fonts, to remove them you only have to edit the dart code and remove the buttons you don't want for the drop-down. Make sure you use the callback to update the state of your dropdown to reflect the font in the editor. Let me know if you have issues with this!

@tneotia tneotia closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants