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

Allow to customize the appearance of every toolbar buttons #353

Open
maelchiotti opened this issue May 13, 2024 · 1 comment
Open

Allow to customize the appearance of every toolbar buttons #353

maelchiotti opened this issue May 13, 2024 · 1 comment
Labels
enhancement New feature or request toolbar Issue related to FleatherToolbar

Comments

@maelchiotti
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I can easily customize the appearance of ToggleStyleButtons thanks to the childBuilder parameter. However, some other buttons are hardcoded, such as InsertEmbedButton, LinkStyleButton...

Describe the solution you'd like

Provide childBuilder for every button type.

Or even better: have a unique, generalized ToolbarButton with that parameter.

Describe alternatives you've considered

I can copy code from Fleather in my app to recreate the buttons, but that's not an optimal solution.

Additional context

I need to change the style of the buttons to make it match my app more closely.

@simonbengtsson
Copy link
Contributor

Alternative to providing customizability of buttons might be to add some easy to use methods on the FleatherController that can be used instead of using the built in buttons. For example "FleatherController#insertEmbed" etc. Then these can be used both internally in the library and by users to create custom buttons or customize keyboard shortcuts etc.

@amantoux amantoux added enhancement New feature or request toolbar Issue related to FleatherToolbar labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request toolbar Issue related to FleatherToolbar
Projects
None yet
Development

No branches or pull requests

3 participants