RTE inserts "\r\n" into macro when creating imagegenned sub headings
Hi All,
Not sure if this is Imagegen, in fact it probably isn't its more to do with the RTE, but basically I have created a macro that passes the title text, height width, colour etc ... it then renders the image using imagegen, problem is sometimes it works fine but sometimes when you save ( or more often when you save a second time ) RTE sticks all these "\r\n" into the text bit.
I ended up working around it by doing the following:
RTE inserts "\r\n" into macro when creating imagegenned sub headings
Hi All,
Not sure if this is Imagegen, in fact it probably isn't its more to do with the RTE, but basically I have created a macro that passes the title text, height width, colour etc ... it then renders the image using imagegen, problem is sometimes it works fine but sometimes when you save ( or more often when you save a second time ) RTE sticks all these "\r\n" into the text bit.
I ended up working around it by doing the following:
<xsl:variable name="titleText2" select="Exslt.ExsltStrings:replace($titleText, '\r\n', ' ')"/>
But this seems a little clumsy.
I also tried turning off render preview in editor... maybe that will help... but it didn't much
Any ideas?
Thanks!
SP
It is a known issue, see http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=21575
is working on a reply...