codex-team/editor.js

An empty block is added in readOnly mode on top

Ouverte

#2 613 ouverte le 12 févr. 2024

 (3 commentaires) (6 réactions) (0 personne assignée)TypeScript (1 985 forks)batch import
almost donebuggood first issue

Métriques du dépôt

Stars
 (26 602 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Device, Browser, OS: Macbook, Chrome, MacOS

Editor.js version: 2.29.0

Guide contributeur