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

Programmable Visibility for Format Toolbar #676

Open
laflechaenelaire opened this issue Apr 1, 2024 · 2 comments
Open

Programmable Visibility for Format Toolbar #676

laflechaenelaire opened this issue Apr 1, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@laflechaenelaire
Copy link

laflechaenelaire commented Apr 1, 2024

Currently, there is no way to control the visibility state of the format toolbar in Blocknotejs. This becomes a problem in situations where we have a custom formatting toolbar with a button, which, when clicked, displays a control component that needs to have focus on an input or a textarea, or the new component no longer needs the toolbar to be present for UI/UX reasons

I would like for Blocknotejs to offer an option to programmatically control the visibility of the format toolbar.

Here, I present a use case in which I have a custom formatting toolbar, with an AI-style button, similar to Notion. It can be seen how the custom formatting tool blocks the command component.

2024-04-02_02-09-22.mp4

In this case, it would be appropriate to hide the custom formatting toolbar once the AI button has been clicked and the command component rendered.

@laflechaenelaire laflechaenelaire added the enhancement New feature or request label Apr 1, 2024
@YousefED YousefED self-assigned this Apr 8, 2024
@YousefED
Copy link
Collaborator

YousefED commented Apr 8, 2024

Makes sense! Awesome work on the editor btw, would love to learn more about what you're building.

I hope to look into this, thanks for reporting

@devmalcolm
Copy link

Hi, i've been encoutering the same issue with a same approach. Using a popup such as AI-Notion style or whatever makes the toolbar very annoying, i found some workaround, by tweaking the CSS styles of the toolbar but it might not be the best way to do that, i would love to have a function to direcly toggle / display the toolbar does it still in WIP ?

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

3 participants