Skip to content

Conversion drops whitespaces #30

Open
@SaschaAusUlm

Description

@SaschaAusUlm

Hi!

We are starting to use the library but encountered an issue.

Our users create/edit text using TipTap. It is a simple editor that allows them to create text with some easy HTML tags just by typing/selecting/formatting it.

Now, they might create text like:

"... that shows our <strong>company </strong>values."

Please notice the whitespace between "company" and the closing </strong> tag. That can easily happen in the TipTap editor and it's not obvious.

The AdaptiveHtml.toJSON() method converts this into:

"... that shows our **company**values."

because the whitespace is dropped. But should it be dropped?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions