I use jwysiwyg, jQuery editor for basic html inserts. Simple and very very
light. Odds are you do not need images and flash tables lists colors,
various overloaded options for comments. Also remember you need to clean
HTML data to prevent users from dropping in their own tags / scripts for
example and simply destroy your site. Echo h() is pointless if your wanting
styled html to display. 
Your going to need to allow certain html tags and attributes and remove
everything else.

K

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of rethab
Sent: Thursday, March 10, 2011 9:52 AM
To: CakePHP
Subject: Re: Editor for Comments

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

-- 
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