codex-team / codex-team/editor.js

[Bug]A blank space because of the block with the class 'ct'(toolbox) in SPA

Open
#1,320 1 comment 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

I have a problem with the spa. This is because of the blocks with the class 'ct' (toolbox). These blocks are not removed from the DOM (they are added to the bottom of the body every time the editor is created).

Here are my steps:
1) I activate the toolbar at the end of the article (for example, hover over the plus sign to the left of the paragraph block). It's necessary.
2) I go to another page (without reloading of course)
3) Here I see a blank space at the bottom of the new page. The height of the space is the offset from the top to the toolbar (I mean from the first point) minus the height of the new page.

This problem is easy to avoid. We just need to remove the ct block from the DOM. This is what I am doing now. But perhaps you add this to the destruction method.

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.