How do I tell the editor/parser unit to NOT put <figure> elements inside a <p>?
I've added styles via CKEDITOR.stylesSet.add, but the editor doesn't know which elements can contain which elements. I want it to know that if I select an <img> inside a <p> and click the figure style, I want the <p> to be replaced by a <figure>. Somewhere internally that logic must exist. How do I change that?
Maybe I'm overcomplicating this... I want decent <figure> and <caption> support. (A <p> can't contain a <figure>!)
PS. OMG this editor is bad!
I've added styles via CKEDITOR.stylesSet.add, but the editor doesn't know which elements can contain which elements. I want it to know that if I select an <img> inside a <p> and click the figure style, I want the <p> to be replaced by a <figure>. Somewhere internally that logic must exist. How do I change that?
Maybe I'm overcomplicating this... I want decent <figure> and <caption> support. (A <p> can't contain a <figure>!)
PS. OMG this editor is bad!