I’m trying to migrate a Cornerstone 2 site to Cornerstone 4. I’m having issues with some custom developed elements. These are called “classic” elements in CS 4, they work ok when viewing the elements on the website. So far so good.
But in the preview mode (editing in WP) these elements are wrapped by other DOM nodes by CS. This causes a lot of layout problems. I found a new property “safe_container”, this should prevent an element getting wrapped by CS. This works ok for most parent elements, but not for elements with dynamic children. When I set safe_container to true for a child element I get the following error: “This element could not render due to invalid markup. You may have unclosed HTML tags in your content.”. Problem is that both the parent element and the child element have no unclosed HTML tags. How do I fix this?