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

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

Closed
wants to merge 2 commits into from

Conversation

Kontrano
Copy link
Contributor

@Kontrano Kontrano commented Apr 6, 2024

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
Copy link
Contributor Author

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

@maelchiotti
Copy link
Contributor

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

@Amir-P
Copy link
Member

Amir-P commented Sep 3, 2024

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

@Amir-P Amir-P closed this Sep 3, 2024
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 this pull request may close these issues.

3 participants