rich-text icon indicating copy to clipboard operation
rich-text copied to clipboard

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

Open cybermedi opened this issue 1 year ago • 0 comments

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.

cybermedi avatar Feb 25 '24 14:02 cybermedi