By toovy on
I created some textarea fields with CCK and would like to stop them from being automatically wrapped in paragraph tags. I see that the filter module is where this is happening but I have no idea how to alter the behavior just for the specific textareas.
I also noticed that the breaks in textareas are <br> and I would like them to be <br /> but I can't find where to change this.
Comments
Filter settings
If you go to "admin/settings/filters" and select "configure" by the filter in question, you can remove the filter by unchecking "Line break converter".
I haven't tried CCK in D6 yet, but see if there are input format configuration options available for the textareas in question. Input filters are usually "output" filters, so remember to check the field display settings.
This setting should not be on if you use a WYSIWYG editor.
Scanning the code for D6 "Line break converter", the breaks should be
<br />. What version of Drupal are you using? Also, WYSIWYG editors may be adding their own magic to the mix.Alan Davison
www.caignwebs.com.au
Alan Davison
Thanks for the reply.
Thanks for the reply.
I haven't installed a WYSIWYG editor yet though I do plan to do so. The Line break converter option is checked because I want the automatic line breaks. I just don't want the textarea wrapped in paragraph tags for certain fields.
I have 6.2 installed. I saw that the filter.module shows it writes
<br />and it does in the default fields like title and body but in the CCK fields it will sometimes put<br>I couldn't find another module that would be changing that behavior....
I just did some more testing and found something very interesting. If the field is set to default display and you switch it to the plain text display and then view the page, the breaks in the CCK textareas are changed to
<br>. Switching back to default display doesn't change the breaks back to<br />even with deleting/refreshing browser cache and having Drupal's caching disabled. However, if you run chron.php and then go back to the page the breaks are changed to<br />. How odd is that?