I'm having some issues with Rich Text fields in XPM. When I add markup with html tags like <p>
or div
XPM seems to get confused. When I click on rich text field with those tags in it XPM treats it like an empty field and adds a new box with <add text>
or populates it with a copy of content in it and moves the existing content down. This is not a multi-value field. Is this a bug or am I doing something wrong? Here is my markup and some screenshots:
<p>
<span>
<!-- Start Component Field: {"XPath":"tcm:Content/custom:Content/custom:Content[1]"} -->
<p>Generic Item Content <a href="/showcase/LinkTest.jsp" title="Copy of Generic Item" >Generic Item</a></p>
<p>asdasdasdasd</p>
<p style="margin-left: 40px; text-align: center;">asdasdasdasdasd asdasdasdasd</p>
<p>asdasdasdasd</p>
<p>asdasdasd</p>
</span>
</p>