Home
TeamSite
Carriage Returns not perseved when previewing
Jumjum
Has anyone encounterd when the user has filled out a textarea and they hit the enter key to give them carriage return it does not preserve itself on the html (presentation) template?
However when you open the template to edit, it is preserved...
--Jum
Find more posts tagged with
Comments
Jumjum
This is from my DCT
<textarea rtf="t" line-break="P" cols="500" rows="300" required="t"></textarea>
Any suggestions would be appreciated...
Thank you!
MattP
So you are using the Java interface, correct? Have you tried it in the web interface? Are you using UTF-8 character set in your presentation template? What is the output?
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Jumjum
Matt,
we are using the browser interface and I am using VisualFormatter to help with the formating of the content. Without VF, the PT will ignore any carriage returns.
Thanks,
Jum
MattP
You have rtf=t. and no reference to Visual Format
RTF "allows users to set styles of bold, italics, underscoring, and hyperlink for
java-based templating
".
Remove the rtf attribute and use external-editor="VisualFormat". Pg 59 in the templating developers guide.
good luck
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Ninerfan
I have a related question. I'm using TS 5.5.2 on Solaris. Editors access from Windows XP. I use Visual Format for Text Areas in the browser based templating GUI.
When someone hits the return key in VF it creates lines like this.
<p>line one</p>
<p>line two</p>
However in the WSIWYG editor it looks like this.
line one
line two
The resulting page looks like this:
line one
line two
How can I get the editor to either stop using <p>tags for each line of text or at least show that extra space created by the <p> tag so people know it's going to be there in the resulting HTML?
Thanks.
MattP
I would try a couple things.
1. Try usung shift+enter, and it should intert a <br> rather than a <p>.
2. If you dont't want any <p> tags filter them in the cfg file like this...
<clean charencode="utf-8" cr="cr" lf="lf" showonsize="5000" preferfonttag="false" reducetags="true">
<remove>
<tagonly>p</tagonly>
</remove>
</clean>
3. There is a continurparagraph attribute (true or false) that will remove <p>s or <div>s. See page 221 in this document.
http://www.ektron.com/software/released/ewebeditpro/v26/developerguide.pdf
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
MultipageLXFs_source.zip
4153.pdf