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

Admin comment edits strips new lines #570

Closed
skylord123 opened this issue Sep 2, 2019 · 4 comments
Closed

Admin comment edits strips new lines #570

skylord123 opened this issue Sep 2, 2019 · 4 comments

Comments

@skylord123
Copy link

skylord123 commented Sep 2, 2019

When I edit comments from the admin UI it removes all newlines that were in the comment before I modified it. It's strange because you will save it and it will show the newlines but once you refresh it will show the same comment with them removed.

Admin editor should match the same functionality as the client side one.

As a work-around you have to convert all newlines to <br /> and it will work then. This is real annoying.

@ix5
Copy link
Member

ix5 commented Dec 28, 2019

As a crutch, you could wrap the area with <pre> tags and strip them before submitting.
But bringing the client-side editor into the admin area would be nicer.

@ix5
Copy link
Member

ix5 commented Dec 28, 2019

Do give #604 a try.

@hamoid
Copy link

hamoid commented Apr 23, 2020

Here an example of how a comment looks in admin. All line breaks are gone in the admin, but not in the comment shown publicly. If I edit and save in the admin, the one-lineness is saved :(

2020-04-23-123246_1120x201_scrot

So there are two aspects: one is how comments are shown in the admin list, and the other is how it is shown in the admin editor (and later saved).

@ix5
Copy link
Member

ix5 commented Dec 26, 2021

@skylord123 fixed by #604, would you mind closing this?

@ix5 ix5 closed this as completed Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants