• Hi

    I spend my day since yesterday writing a long article full of code that I spent time formatting and commenting properly.

    I started to get bored that each time I save from the Visual Editor, symbols such as “<” in the Java code I was adding in my page were always replaced by “<“, or any others symbols such as >, &, etc..

    So I went to my user profile and disabled Visual Editor.
    When I came back to edit my page, all my recent save (update) have been lost, and the revisions older than few hours too.

    I fully understand that WP is a free tool but please understand that this is a really really upsetting situation.

    I’m very new to WordPress, and the problem I’m reporting may come from there. But I know WP is around since quite a while and what feature in this tool can be more important than persisting properly a page ?

    I don’t see the relationship, as a lambda user, between disabling the visual editor and loosing my last page content or even revision.

    I’m really disappointed and spent a lot of time for nothing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, WordPress visual editor automatically strips out html from your posts. Not sure why turning off visual editor would delete your content. But why are you putting all that code into the post editor?

    I have found that if you add a class to an element, eg, <p class=”paragraph”>text in paragraph</p>, then wordpress will leave it alone.

    Also, what are you trying to do in the post. Normally, posts would have basic paragraphs, lists, images. Of course, you might want to add divs for columns and for layout purposes.

    Switch from the visual editor to the text editor to add html and raw code to a page/post (toggle to the ‘Text’ tab in the top right hand corner of the page/post window)

    The visual editor is notoriously bad for trying to enter code into posts. It strips anything that looks like code in order to protect the site from users inadvertently entering code that could be malicious or otherwise break things.

    I find it helpful to use a plugin that allows me to write my posts in Markdown (which makes code snippets pretty easy). Maybe check out https://www.ads-software.com/plugins/wp-markdown/

    @john2017

    Just a suggestion – and I’m certainly not telling you how to fine-tune your work flow – but, I like to write very lengthy content in an off-line editor where I can be certain that there is no chance of corruption or loss of effort before it’s finished and ready for publication. Not to mention the obvious benefit of having the content archived (backed up) locally for future reference if needed.

    When I came back to edit my page, all my recent save (update) have been lost, and the revisions older than few hours too.

    That isn’t typical WordPress behavior. Especially the saved revisions. I can’t even guess why that may have happened to you.

    @icaspar’s suggestion for using a plugin (there are many to choose from) to post unadulterated code in your content is definitely the way to go.

    “I don’t see the relationship, as a lambda user, between disabling the visual editor and loosing my last page content or even revision.”

    I don’t see the comparison.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Super upset – content lost after disabling VE’ is closed to new replies.