editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

fix: issue #2495

Open michalismeng opened this issue 1 year ago • 0 comments

Fix issue #2495.

Changes:

  • Add a default block only when a placeholder is defined.
  • In renderer, inserting an empty block when zero blocks are given, results in an extra block being rendered. In readonly mode this is empty. Fix this behavior.

Outcome of this PR:

  • Display the placeholder text, only if defined (whether in readonly mode or not).
  • Do not add an extra empty paragraph in readonly mode.

michalismeng avatar Mar 18 '24 10:03 michalismeng