codex-team / codex-team/editor.js

💡 Toolbar position should be relative to block

Open
#2,153 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Problem:

I'm using `editorjs` with/for different layouts. In certain scenarios I have blocks side by side, grid, scrollable horizontal etc... When there are two blocks side by side, it's hard to get to the toolbar for the block you want as the focus changes the moment hover over the other block. I can get around it by not entering the block modal but I can't ask users to do that. Red bordered block is focused:

Screenshot 2022-10-21 at 16 24 35

Proposed solution:

The toolbar container position should be relative to the block offset rather than the `editorjs` cotainer (`codex-editor`).

Screenshot 2022-10-21 at 16 24 29

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.