Ektron Patch Release: Extra P tags
Posted by Amy Button
on Monday, March 01, 2010
Problem:
<p> tags were wrapping line breaks between tags so that every time content was edited, extra <p> tags would be inserted at various places.
- This will be fixed in 8.0.0SP2, 8.0.1, and 7.6.6SP4
- This problem applies only to Ektron CMS400 using the eWebEdit400 (aka ContentDesigner) not eWebEditPro
- For 8.0.0SP1 or 7.6.6.SP3, (if you have 8.0.0 or 7.6.6, first upgrade to the latest service pack
Resolution (per Ektron):
Edit ~/workarea/ContentDesigner/ContentIncoming.xslt
Find <xsl:template match="@data-ektron-url"/>
Add the following template below the template shown above
<xsl:template match="p" priority="1.0">
<xsl:copy>
<xsl:apply-templates select="@*" />
<xsl:attribute name="data-ektron-preserve">true</xsl:attribute>
<xsl:apply-templates select="node()" />
</xsl:copy>
</xsl:template>
Edit ~/workarea/ContentDesigner/ContentOutgoing.xslt
Find <xsl:template match="p[(position()=1 or position()=last()) and text()=' ' and count(*)=0 and count(@*)=0]" />
Change To (remove "(position()=1 or position()=last()) and " and Add "<xsl:template match="@data-ektron-preserve"/>"
<xsl:template match="p[text()=' ' and count(*)=0 and count(@*)=0]" />
<xsl:template match="@data-ektron-preserve"/>
FOR 8.0.0SP1 Only (not 7.6.6)
Edit ~/workarea/ContentDesigner/ektron.selectionrange.js
Find else if(!Ektron.SelectionRange.isBlockTag(objNode.nodeName))
Add "1==objNode.nodeType&&" as shown below
else if(1==objNode.nodeType&&!Ektron.SelectionRange.isBlockTag(objNode.nodeName))
Care to Comment?