Preserve Paragraphs when Pasting in the HTML Editor

Hi!

I think something changed here. It used to work nicely before.

When I paste content into the HTML text editor (I have to, because it contains HTML), the paragraphs are lost when switching to the Rich text mode.

This is a real issue because right now there is no way top preserve rich content when pasting it, without losing visual formatting. This forces us to go in and fix each paragraph manually, and that can take a lot of time when working with large amount of content.

Thanks!

Hey @Misho,

Can you post an example HTML here that gets lost when you switch to the Rich Text Mode? I tested what you described in my site and the HTML tags are intact when I toggle between HTML and Rich Text mode.

Thanks.

Hi!

Yes, so if we paste this into the Text editor:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

It will be condensed into a single paragraph, once switching to the Rich text mode. Note that I did not Paste those two paragraphs with the <p> tags.

If I remember correctly, there was a time when those two paragraphs would both get their own <p> tags, instead of condensing all the text into the single <p>.

Thanks!

And Happy New Year! :tada:

Hey @Misho,

I have replicated what you’ve described. The change is likely on WordPress’ side though but I’ll post this in our issue tracker and our development team might find a way to restore the previous behavior.

Thanks for reporting.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.