Log in or register to post comments
Last post
tony_c's picture
Joined: 15/11/2011
Posts: 10
CKEditor removing <div> tags from templates

We have recently upgraded from CKEditor 3 to 4, and we use templates to set up nicely laid out pages for our clients. However we have discovered an interesting bug. If you try to add a template wrapped in a single div inside multiple existing divs (by unchecking the replace actual contents checkbox) then CKEditor strips the div from the template.

If you insert the template in a new page, at the top of the content outside the existing divs, or use the replace actual contents feature, then CKEditor doesn't strip out the div. Nor does it seem to strip out divs if there is more than one in the template, only when there is one wrapping div. This is replicable every time.

What is going on and how can we overcome this as it's a serious problem for our business?

tony_c's picture
Joined: 15/11/2011
Posts: 10
Can anyone help with this?

Can anyone help with this?