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

Adding some kind of identifier for "select header style buttons" configuration in the childBuilder's extra options #2432

Open
1 task done
sergenhuddle opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sergenhuddle
Copy link

Is there an existing issue for this?

Use case

I'm adding custom buttons for all the editor's possible styling options (bold, header, etc.), but then I discovered there's no way to differentiate the header style buttons. If I want to put custom buttons, I need to know which button this is (header, h1, h2, or h3) in order to display the correct "icon" and to display if it is selected.

Proposal

I suggest adding a Header enum that consist of header/n, h1, h2 & h3, and adding this and a bool isSelected to QuillToolbarSelectHeaderStyleButtonsExtraOptions.

@sergenhuddle sergenhuddle added the enhancement New feature or request label Jan 10, 2025
@chrissnoek
Copy link

This is actually a great idea!

@keesplugandpay
Copy link

Yes please!

@CatHood0 CatHood0 self-assigned this Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants