codex-team / codex-team/editor.js

An empty block is added in readOnly mode on top

Open
#2,613 3 comments 6 reactions 0 assignees View on GitHub
almost done bug good first issue
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

After the update to 2.29.0 in readonly mode there is a empty block added with an invisible (opacity: 0) placeholder text. The empty line is breaking the layout.

I temporarily fixed it with CSS:

```
.ce-paragraph[data-placeholder][contenteditable="false"]:empty {
display: none;
}
```

Expected behavior:
No additional line on top should be rendered, like in v2.28.0 in readOnly mode.

Screenshots:
![image](https://github.com/codex-team/editor.js/assets/244475/b2667d5e-d6ac-4065-a446-737115f70f11)

Device, Browser, OS:
Macbook, Chrome, MacOS

Editor.js version: 2.29.0

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.