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?
Can anyone help with this?
Can anyone help with this?