Skip to content

<p></p> returned in empty rich text box #124

@cybermedi

Description

@cybermedi

When anyone accidentally click into rich text field it automatically create and empty paragraph. The API is then inconsistent.
In proper empty field the return is NULL and "clicked" field it return "

"
This makes front end testing complicated when do not render if the field is empty.

Solution:
on hygraph side check if the field is "optically" empty before the safe and remove empty paragraph tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions