Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue #2495 #2664

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

michalismeng
Copy link

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.

When in readonly mode, render the placeholder only if it is defined.

In addition, do not add an extra default block. Update initialization.cy.ts
accordingly for this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant