[Support request] Breaks get lost

Home Forums Support [Support request] Breaks get lost

Home Forums Support Breaks get lost

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #775622
    Maximilian

    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?

    #775771
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #777391
    Maximilian

    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?

    #777394
    Tom
    Lead Developer
    Lead Developer

    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.

    #777416
    Maximilian

    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?

    #777506
    Tom
    Lead Developer
    Lead Developer

    That shouldn’t be necessary.

    Can you show me a screenshot of your “Text” tab?

    #777511
    Maximilian
    #777829
    Tom
    Lead Developer
    Lead Developer

    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.

    #780031
    Maximilian

    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?

    #780063
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.