Jquery – Rails or Jquery WYSIWYG

jqueryruby-on-railswysiwyg

I'm pretty much just looking for the code they used that is very similar this this WYSIWYG when adding a comment. I want them to be able to hit return and it automatically throws in a <br /> tag. I know very simple way to get it to work in a text area if they know the HTML tags, but almost no users will. So I just want a few buttons like bold, italic, and link and have it automatically do <br />'s on return. Nothing real fancy.

It can be either a jquery or a rails solution as I am using both. Thanks for any leads/help. I looked briefly into some like TinyMCE, but those do a lot more than I want users to be able to do.

Best Answer

I've used fckeditor, fairly easy to get running:

http://www.fckeditor.net/

but will consider the Yahoo rich text editor for my next app:

http://developer.yahoo.com/yui/editor/