fleather icon indicating copy to clipboard operation
fleather copied to clipboard

Allow to customize the appearance of every toolbar buttons

Open maelchiotti opened this issue 9 months ago • 1 comments

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.

maelchiotti avatar May 13 '24 15:05 maelchiotti

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.

simonbengtsson avatar May 30 '24 11:05 simonbengtsson