Site logo

Archived topic

Breaks get lost

9 replies · Started by Maximilian on January 7, 2019

Viewing posts 1–10 of 10

My breaks get lost in section view.

I can open a section in "code" view and see all breaks.
If I switch to "visuell" view all breaks are lost even if I switch back to "code".
https://imgur.com/0Ce7Mtk (Screenshots of all three states)

I have this problem on multiple instances. Any ideas?

Hi there,

This is a known bug currently.

I have a patched GPP version with a fix which you can test if you'd like. If so, shoot me an email :)

Thanks for sending that version over. It doesn't fix the problem.

Futher observation: I created a new page with sections and there are "<br>"s in the code view which are completely missing in the pre-upgrade pages.

Where is the page section content physically stored? Hidden in a database or in the filesystem?

Just to confirm, did you clear your browser cache?

The content is inside the database.

The new version will show the HTML (<br> elements included). However, it will keep line breaks intact so it's not one big block of code/text.

Yes I did and I switched off caching in general by webmaster-tools. I also installed the patched plugin twice.

In the pre-upgarde page there are '\n' in the database.
In the post-upgrade pre-patch page there are '<br>' in the database.

Should I fix this manually once for all posts and I'll be fine in the future?

That shouldn't be necessary.

Can you show me a screenshot of your "Text" tab?

That looks like the intended behavior.

There are line breaks after your heading and your second paragraph.

The update I sent you uses the built-in wp.editor javascript API, which fixed everything being one big wall of text.

I know it does put neat lines between those elements anymore, but I don't believe that's possible anymore with WP 5.0.

But it's not quite as it was before.

Typing Caps+Enter lead to a line feed \n in text view, which was displayed like a real break <br>.

So I need to update the source code on all sections containing LF's?

I know, unfortunately things in TinyMCE changed in WP 5.0, so it can't be exactly as it was before. I'll keep looking into it, but I believe this is a (small) change we'll need to get used to in the legacy Sections.

Soon, we'll have a Sections block for the new editor :)

This archived topic is closed to new replies.