Option to hide side menu when cursor is outside of the editor

Open
#351 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start with the SideMenuPlugin and its onMouseMove method, which currently controls when the side menu appears. Determine how to expose a configuration option for restricting it to the editor area, then verify that the menu stays hidden when the cursor is outside the editor and still appears for eligible positions inside it.

Written by the indexing model from the issue text.

Description

Currently the side menu will appear next to the block where the cursors mouse Y position overlaps. It would be great if we could configure this behaviour to only appear when the mouse cursors position is inside of the editor.

This behaviour is currently controlled within the SideMenuPlugin under the onMouseMove method.

Dominant language
TypeScript
Stars
10.2k
Forks
772
Avg merge
3d 11h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TypeCellOS/BlockNote

All issues in TypeCellOS/BlockNote

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.