Skip to content

Editor initializes with 2 paragraphs #29

@podarcis

Description

@podarcis

The editor initializes with two paragraphs (<p></p><p></p> instead of <p></p>) in some cases. I suspect it happens when the underlying field is NULL instead of an empty string, e.g. on a fresh object.

This results in a superfluous paragraphs in case the user did not remove it.

Steps to reproduce

  1. Open Pimcore demo (either platform version 2024.x or 2025.x).
  2. Create a new object that contains a WYSIWYG.
  3. Set focus into the field.
  4. Confirm by moving cursor (with key up/down) that there are two vertical places for the cursor to be. Also check the sources using toolbar "HTML Edit" that there are now two paragraphs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions