fleather icon indicating copy to clipboard operation
fleather copied to clipboard

Enhancing FleatherToolbar with Customizable Heading Labels for User-Guided Text Formatting

Open Kontrano opened this issue 10 months ago • 1 comments

First of all, Thanks for the amazing work on this package.

I propose an enhancement to the FleatherToolbar class to support customizable heading labels. This feature introduces optional parameters: normalLabel, heading1Label, heading2Label, heading3Label, heading4Label, heading5Label, and heading6Label. These parameters allow for the customization of toolbar heading labels, facilitating user guidance in text formatting, such as preset alert text formats. The implementation updates the _headingToText map to utilize these parameters, offering a flexible approach to managing text input formats. This addition aims to improve user experience by enabling more descriptive and context-specific toolbar labels.

I think this would be a good addition with minimal impact but improving the overall flexibility of the package

Edit: I'm not so used to pull requests so my other fix was also included with this one.

Kontrano avatar Apr 06 '24 11:04 Kontrano

I'll remove this and re-add with a clean pull request that also includes the required tests and such

Kontrano avatar Apr 29 '24 08:04 Kontrano

I guess this can be closed @Amir-P? The issue remains but this solution does not fit how the translations work anymore.

maelchiotti avatar Sep 03 '24 20:09 maelchiotti

Yes, indeed. I'll close this and create an issue for fixing in future. Thanks for pointing this out. @maelchiotti

Amir-P avatar Sep 03 '24 21:09 Amir-P