Jump to content

Upgraded CKEditor messes with my div tags


IntegralHack
 Share

Recommended Posts

I used CKEditor on a project and it seemed to go well, then I upgraded it and it started manipulating my DIV tags. For example, if I have a field where I had something like this:

<div class="video-container"><iframe allowfullscreen="true" frameborder="0" height="360" src="//www.youtube.com/embed/ffffffffffff" width="480"></iframe></div>

<p>New paragraph appears here.</p>

This was fine with the prior version (I have both ACF and HTML Purifier turned off).

But now something like this happens:

<div class="video-container"><iframe allowfullscreen="true" frameborder="0" height="360" src="//www.youtube.com/embed/ffffffffffff" width="480"></iframe>

<p> </p>

<p>New paragraph appears here.</p>
</div>

My ending DIV tag gets moved to the end and an extra P tag gets inserted. Any ideas?

Thanks,

Matt

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...