Page 1 of 1

no line break recognition in text with image textarea

Posted: Wed 2. Jun 2004, 12:14
by habi
Just detected a small "bug" that in the textarea field of the text with image contentpart the linebreaks are not replaced by "<br/>" as in the textarea field in the pain text contentpart.

(I'm not using a wysiwyg editor - safari user)

Perhaps I can find the place to fix it.

Posted: Wed 2. Jun 2004, 13:07
by rk
i think you should use [br].

Posted: Wed 2. Jun 2004, 13:24
by habi
Ok! That could be a possible solution but that's not the way I would like to do because similar input fields should be treated the same way and in a textarea file I expect that the engine replaces the returns automatically to <br/> or encloses the paragraphs in <p></p>

Posted: Wed 2. Jun 2004, 15:47
by habi
The workaround:

In include/inc_front/content/cnt1.article.inc.php enclose the following expressions in each case statement of the switch control:

Code: Select all

div_class($crow["acontent_text"],$template_default["article"]["text_class"]
with nl2br(). So they look then like this:

Code: Select all

nl2br(div_class($crow["acontent_text"],$template_default["article"]["text_class"]))
exept the switch case commented with "im Text links". There you have to put the nl2br() around the following code at the second line of the case statement:

Code: Select all

$crow["acontent_text"]