codex-team / codex-team/editor.js

[Bug] Inline toolbar is not centred on initial text selection for all blocks.

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

Description

**Description of Bug:**
When you select the text content of any block with a double click on a new page load, for the first time, the iniline toolbar is not properly centred below the text.
This behaviour is recorded on every new page load as well.

**Steps to reproduce:**
1. Open Editor.js.
2. Double click on any blocks text content for the very first time.

Screenshot 2020-09-07 at 12 46 59 AM
Screenshot 2020-09-07 at 12 46 42 AM

For different blocks the alignment is changing every time.

**Expected behaviour:**

Screenshot 2020-09-07 at 12 48 23 AM
Screenshot 2020-09-07 at 12 48 50 AM

**In the images, I have only showed a few blocks but the problem exists with all blocks which show any textual form of content.**

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.