WordPress.org

Ready to get started?Download WordPress

Forums

KEEPING empty divs! (3 posts)

  1. SpankMarvin
    Member
    Posted 5 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!

    John

  2. whooami
    Member
    Posted 5 years ago #

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

    http://wordpress.org/support/topic/202124?replies=11

  3. SpankMarvin
    Member
    Posted 5 years ago #

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

    J

Topic Closed

This topic has been closed to new replies.

About this Topic