Why does you visual editor mess up HTML code
Why does your visual editor mess up HTML code?
I put formatted HTML code into the Visual editor and saved it. Then when I come back it's all on one line and not formatted.
I put formatted HTML code into the Visual editor and saved it. Then when I come back it's all on one line and not formatted.
Comments
Visual Editor is a WordPress default item and we do not touch it at all so this couldn't be nothing related to theme. Please show us what's happening exactly.
You click Add Section > Add Wrap > Add Item > from the popup select "Visual Editor"
This is part of your Muffin builder.
If i use the default content editor in wordpress the code stays the same and is ok.
It's only when I use the Visual editor inside the Muffin Builder that this issue arises.
Here is how i enter the code
http://davidstokes.com/muffin/img1.png
here is what it looks like after i save it
http://davidstokes.com/muffin/img2.png
as i said the normal Wordpress editor doesn't do this.
But I can't use the normal one is this case as i'm using other elements from the builder.
Content
Other muffin element
Content
Other muffin element
Content
How can I split the content to show correctly ?
Your edited puts all the code on to one line making it extremely hard to read.
Doesn't matter how many times I fix the code your editor changes it.
Wordpress's own editor doesn't do this. So there is a bug in your one and it doesn't function as an editor should and if you designed it to change people's code and place it on one line then it's bad design.