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

Bubble menu block type dropdown #19

Closed
YousefED opened this issue Mar 9, 2022 · 0 comments
Closed

Bubble menu block type dropdown #19

YousefED opened this issue Mar 9, 2022 · 0 comments
Assignees

Comments

@YousefED
Copy link
Collaborator

YousefED commented Mar 9, 2022

Add a dropdown to change the blocktype:

image

In BlockNote, currently blocks can be both Heading and List at the same time. This means we have two options:

A. Block type dropdown only contains Text / Heading options

  • Make the block type dropdown only have options for Text / Heading (1/2/3)
  • Add separate menu buttons for the "list type":

image

Pros:

  • user can create all possible block type combinations from the menu

Cons:

  • more menu items = more clutter

B. Block type dropdown only contains Text / Heading options

  • The dropdown should have options for: Text, Heading 1 / 2 / 3, Bulleted list, Numbered list, To-do list.
  • A heading that's also a list, should show as Heading (i.e.: Heading takes precedence)
  • When changing block types, drop the other attributes (i.e.: changing a bullet-heading to text, removes both the bullet and the heading attributes, changing a list item to a heading removes the list attribute)

Pros:

  • Less menu items = cleaner

Cons:

  • Some block types won't be possible to create via the menu, but will be via keyboard (e.g.: when you type "-" in front of a heading

I think option B would have my preference atm, what do you think?

Other notes:

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

No branches or pull requests

3 participants