How do I enter 'this is ' using the new editor?

  • Unknown's avatar

    If I type text surrounded with angle brackets (e.g. this is <Fred>) into the Visual editor and save once it displays fine. However, if I now try to edit it again the editor gets confused and deletes the Fred part. This is presumably because it thinks it’s code of some kind.

    I tried using the HTML editor and entered ‘this is <Fred>’ or

    <Fred>

    or <Fred> or <span><Fred></span> or <div><Fred></div>. All of these fail, after you’ve saved, viewed, edited, updated, viewed and edited again (the first save turns it into actual angle brackets).

    This stuff works OK with the old editor, both in the visual and text (HTML) versions.

    There must be some way of entering text surrounded with angle brackets into the new WordPress editor so that the post can be subsequently edited, can someone help please?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Edit: I should have realized the question wouldn’t even post correctly – hopefully it’s reasonably clear what the problem is.

  • Unknown's avatar

    Can you put here all the code you used? Between code tags.

    “<Fred>” is a tag that does not exist in (X)HTML.

  • Unknown's avatar

    Hi Galois, yes, apologies I was being a bit of an idiot posting above. I should have realized there would be problems asking about entering stuff in an editor when I was using the same editor to enter the question.

    I just want to be able to enter left-angle-bracket, then some text (any text), and then right-angle-bracket anywhere in a blog post. And then be able to subsequently edit the post. The entered text doesn’t have to be a valid HTML tag. I have a number of private posts I’ve made to remind myself about WPF, and used to be able to do this fine using the old visual editor: no need for HTML at all.

    But try it with the new Visual editor and it doesn’t work. Steps to reproduce are:

    1. Get up the new Visual editor on a new post.
    2. Enter some text: ‘This is ‘
    2. Enter <
    3. Enter some text: ‘Fred’ (or ‘RichsButton’)
    4. Enter >
    5. Publish
    6. View post
    7. Edit

    The stuff between angle brackets has disappeared. That’s the problem. The HTML stuff was me trying to find a workaround using HTML.

    I’ve now realized I can still use the old editor from WP-Admin, and it does still work, so that’s a workaround. But I suspect the old editor is about to be deprecated so if there is a workaround using the new one it would be nice to know. I’ve spent a half day trying, so maybe there isn’t.

  • Unknown's avatar

    But try it with the new Visual editor and it doesn’t work. Steps to reproduce are:

    1. Get up the new Visual editor on a new post.
    2. Enter some text: ‘This is ‘
    2. Enter <
    3. Enter some text: ‘Fred’ (or ‘RichsButton’)
    4. Enter >
    5. Publish
    6. View post
    7. Edit

    The stuff between angle brackets has disappeared. That’s the problem. The HTML stuff was me trying to find a workaround using HTML.

    Yes, that’s the problem! The new Beep Beep Doom editor.

    I don’t use it. Never. It has a lot of bugs.

    I’ve now realized I can still use the old editor from WP-Admin, and it does still work, so that’s a workaround. But I suspect the old editor is about to be deprecated so if there is a workaround using the new one it would be nice to know. I’ve spent a half day trying, so maybe there isn’t.

    There are no plans to ditch the classic editor, according several Staff members.

    Don’t worry about this.

  • Unknown's avatar

    A lot of pages about bugs in the new Beep Beep Doom editor:
    https://en.forums.wordpress.com/tags/new-editor-feedback

  • Unknown's avatar

    Great, thanks for your help, I’ll stop worrying now.

  • Unknown's avatar

    You’re welcome & best wishes. :)

  • The topic ‘How do I enter 'this is ' using the new editor?’ is closed to new replies.