Forums

[resolved] Why does the code view editor do this and how to fix? (8 posts)

  1. shambhavi
    Member
    Posted 4 years ago #

    Hello,

    I was hoping that in 2.3, the post editor would stop stripping out and rearranging formatting. But this was not to be!

    Has anyone resolved the issue of how to insert <br> type line breaks w/o them getting stripped when you re-edit something?

    thanks!

  2. moshu
    Member
    Posted 4 years ago #

    Yes, we resolved it: we don't use the wysiwyg editor.
    When I say not to use it - I mean turning it off definitely in admin > Users > Your profile.
    Just switching between code/visual does NOT turn it off.

  3. theapparatus
    Member
    Posted 4 years ago #

    Just for reference, the issue maybe because of the tag you're using. Just a <br> is not correct. It needs an ending slash in there. ie <br /> That may be why it's being removed.

  4. moshu
    Member
    Posted 4 years ago #

    Nope. The wysiwyg animal is NOT for inserting your own code. It will remove it...

  5. theapparatus
    Member
    Posted 4 years ago #

    Oh agreed. I just noticed the tag the poster was using and threw that in there.

  6. moshu
    Member
    Posted 4 years ago #

    You were right about the correct syntax for the usual WP doctype (XHTML). However, that still doesn't help when the wysiwyg kicks in...

  7. mehenninger
    Member
    Posted 4 years ago #

    Turning off the WYSIWYG editor solved my issue as well... it was adding code (http://www.domain.com/my-admin0) to links. Get rid of it!

  8. shambhavi
    Member
    Posted 4 years ago #

    Thanks, All!!

    Off it goes!

Topic Closed

This topic has been closed to new replies.

About this Topic