I use the Simple Editor to write content, which can be used in Google Maps info window..
I store the content in a variable in the template and use that variable in my javascript code.. but the problem is that even if I convert linebreaks with <br /> it still break the line in the source code, which break the javascript code..
Simple editor - content without linebreaks
Hi..
I use the Simple Editor to write content, which can be used in Google Maps info window..
I store the content in a variable in the template and use that variable in my javascript code.. but the problem is that even if I convert linebreaks with <br /> it still break the line in the source code, which break the javascript code..
Content in Simple editor:
<p>Address<br/>Zip City<br/>Tlf: 12 34 56 78<br/><a href="mailto:[email protected]">[email protected]</a>
</p>
In template:
When I don't use any linebreaks in the editor it works..
Is the a way to force the content always to display in one line/a string?
/Bjarne
Okay.. I moved the variables to a xslt files.. and use normalize-space to remove the linebreaks after I read this post: http://our.umbraco.org/forum/developers/xslt/29290-Remove-line-breaks-for-locator-package
/Bjarne
is working on a reply...