The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

KEEPING empty divs! (3 posts)

  1. SpankMarvin
    Posted 7 years ago #

    Hi there

    I am using a jQuery plugin which requires setting up empty div tags in my posts. WP (or more specifically, the TinyMCE) seems to enjoy removing these empty divs whenever I move to the visual view and back to HTML.

    I understand that I could probably get around this if I disabled TinyMCE completely, but I would rather have the functionality of the visual editor whilst being able to add HTML -- however incorrect it may seem -- on the fly. Not sure if it's possible to get the best of both worlds, but if anyone knows how I can go about disabling whatever automatic correction is taking place here, I'd greatly appreciate it.

    Thanks in advance!


  2. whooami
    Posted 7 years ago #

    switching back and forth between the 2 editors has never been a recommended practice.


  3. SpankMarvin
    Posted 7 years ago #

    Hmm, thought as much. HTML editor it is, then. Thank you!


Topic Closed

This topic has been closed to new replies.

About this Topic