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

Rich Text Input removing soft breaks and all empty paragraphs from the output markup #2772

Open
kark opened this issue Apr 10, 2024 · 2 comments
Labels
💅 Type: Enhancement Improves existing code

Comments

@kark
Copy link
Contributor

kark commented Apr 10, 2024

Is your feature request related to a problem? Please describe.

Reported issue with the Rich Text Input

Rich text editor in MC erases all empty lines before the data get saved. Is there a way to force an blank line using the UI. Other editors allow the usage of Shift+Enter to create a <br /> or empty <p /> which is convenient for MC users

Describe the solution you'd like
Rich text input including soft breaks in the output markup to enable users vertical separation of content

Describe alternatives you've considered
-

Additional context

@kark kark added the 💅 Type: Enhancement Improves existing code label Apr 10, 2024
@jaikumar-tj
Copy link
Contributor

@kark JFYI, there is an additional sanitize function added in MC Product detail page (for rich text description) which removes all the <p> tags. Even if the UI-kit supports empty lines, Pacman and Context team will have to rework to tackle this in the FE.

@kark
Copy link
Contributor Author

kark commented Apr 10, 2024

@jaikumar-tj Thanks for sharing 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💅 Type: Enhancement Improves existing code
Projects
None yet
Development

No branches or pull requests

2 participants