Support » Fixing WordPress » Bug: iframe code disappears switching visual/html

  • I want to put the following code into a post:
    <iframe src="" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

    When I paste it into the HTML tab of the editor the code appears just fine and the widget shows up after hitting the Preview button.

    If I toggle back to the Visual tab, there is about a 50% chance that it will show up. If it does show up and I switch back to the HTML tab, the code is gone. This happens if there is any other text in the box or not.

Viewing 1 replies (of 1 total)
  • Switching back and forth between the visual and html editors will mangle your code. The visual editor is not a post preview tool. These editors do things very differently and you should only be using one of them. If you are adding your own code, then use only the html editor and disable the visual editor in your dashboard profile.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: iframe code disappears switching visual/html’ is closed to new replies.