You might want to use this PHP function: 
http://ch.php.net/manual/de/function.nl2br.php

As for WYSIWYG Editors: I thought TinyMCE could be used pretty light-
weight

cheers

On 9 Mrz., 23:09, Chris <[email protected]> wrote:
> Hi there,
>
> I came to the idea that a real simple plain editor would be great for
> the commenting system I just built. Can anybody recommend one? I saw
> markitup! but it seems to be too much for my needs. What I want is a
> rather simple functionality, like the comment box you can find on
> youtube, which turns links and mentioned usernames into anchors.
>
> Initially I started out with another problem: That poeple hitting
> enter in my comment area would just return a \n. I could not figure
> out why this happens and sanitize would not prevent it. But now all my
> comments are stuffed with \n. That's when I looked at the youtube
> comment section and realized they do not work with <br> or something,
> they just wrap it into paragraphs. And I think this functionality can
> only be attained by using an editor. Or what do you think would be the
> best solution?
>
> Cheers
> Chris

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to