Hi,
I am loading xml into the editor for editing. Some custom elements are closed using the self closing shorthand notation for eg. <observations />. The issue is that when it is loaded into the editor it becomes <observations></observations> and it wraps the sibling elements.
Actual xml
<entry>
<observations />
<imaging />
</entry>
After loading
<entry>
<observations>
<imaging/>
</observations>
</entry>
How can I prevent the editor from doing this.
CKEditor is not an XML editor
CKEditor is not an XML editor. Read more about the basic CKEditor concepts.
If you want to edit XML you need to transform it into its HTML representation before loading it into the editor and then transform it back when getting data from the editor.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+