• Philip Jones

    (@philipmartinjones)


    This problem applies to WordPress 2.9.1 and 2.9.2.

    In summary: We pasted a series of list items into the visual editor – nothing else, just a series of LIs. I later noticed that the HTML wasn’t validating and that the list items had no UL and /UL declarations top and bottom. In an attempt to fix this I highlighted all the items in the visual editor and clicked the button to reapply the list style.

    Although this looked good in the editor initially, as soon as I updated (saved) the page all the content in the editor was lost.

    When I tried to recreate the problem I noticed that after reapplying the list, switching to HTML view showed the content had been cleared.

    Although there is an obvious work-arounds of adding the UL and /UL in the HTML editor, I really want to avoid non-technical colleagues having to go into the HTML editor. The source that we are copying from is out of our control.

    We have a lot of pages now entered like this, so a solution would be really appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Markup pasted into the Visual Editor will be removed. If you’re pasting in markup, you must use the HTML tab.

    Thread Starter Philip Jones

    (@philipmartinjones)

    Thanks esmi. But the problem I’ve experienced is a different one:

    Here is how it came about:

    1. A chunk of formatted text was copied from a web site
    2. The formatted text was pasted into the visual editor
    3. It looked fine. Bullet points and other formatting were preserved
    4. We noticed that the page on the live site was not validating and observed it was due to missing ul and /ul declarations
    5. In the visual editor the text was highlighted
    6. The ‘unordered list’ button was clicked
    7. The page was updated/saved
    8. When the editor page refreshed the content had all been lost.

    I observed this consistently on a couple of different sites with different versions of WordPress. This was using the Chrome browser.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing a badly-formatted list makes editor lose content’ is closed to new replies.