• Resolved Paradox Uncreated

    (@paradox-uncreated)


    While editing pages, sometimes enters are removed, and sometimes there are two linespaces. Removing unesscary divs from the code seems to fix it.

    Peace Be With You.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Can you provide some more details? If you are switching to and from the text and visual editor then that will strip out your HTML.

    Thread Starter Paradox Uncreated

    (@paradox-uncreated)

    If one only leaves the first and last div, things work fine. And yes switching from text and visual editor, changes things aswell.

    Was there any particular item you wondered about?

    Peace Be With You.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So you have the answer as to why line-spaces and enters are removed, from Alchymyth.
    Linespaces and return carriages don’t matter with HTML,
    E.g

    <div>
     <p> ... </p>
    </div>

    Is the equivalent of

    <div><p> ... </p></div>

    Thread Starter Paradox Uncreated

    (@paradox-uncreated)

    It seems the visual editor is doing this. If you switch to “html” editor, after the visual has stripped the linecarriages, exit the edit without save, and re-edit it goes directly to “html” editor, without stripping the linespaces.

    Peace Be With You.

    Thread Starter Paradox Uncreated

    (@paradox-uncreated)

    Fixed in 3.5.1. Excellent!

    Peace Be With You.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘div bug’ is closed to new replies.