<p>Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?</p>

[{'answer_id': 24607, 'author': 'wfarr', 'author_id': 2286, 'author_profile': 'https://Stackoverflow.com/users/2286', 'pm_score': 6, 'selected': True, 'text': "<p>Though it's certainly not a direct answer, in the past I've found I prefer to use RedCloth (or a Markdown parser if you don't enjoy Textile) and use a simple textarea with an AJAXy preview. Generally speaking, WYSIWYG editors have a long history of creating redundant tags and similar, leading to potentially broken pieces of HTML.</p>\n"}, {'answer_id': 24619, 'author': 'kamens', 'author_id': 1335, 'author_profile': 'https://Stackoverflow.com/users/1335', 'pm_score': 3, 'selected': False, 'text': '<p>I\'m not sure about a Ruby Gem, but <a href="http://tinymce.moxiecode.com" rel="nofollow noreferrer">TinyMCE</a> is a customizable, generally stable WYSIWYG editor that is fairly simple to integrate w/ any project.  I\'ve used it a number of times.</p>\n'}, {'answer_id': 24635, 'author': 'Matt Rogish', 'author_id': 2590, 'author_profile': 'https://Stackoverflow.com/users/2590', 'pm_score': 2, 'selected': False, 'text': '<p>I use FCKEditorOnRails plugin: <a href="http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master" rel="nofollow noreferrer">http://github.com/UnderpantsGnome/fckeditor_on_rails/tree/master</a></p>\n\n<p>Note that you can generally drop in the latest version of FCKEditor without much tweaking if you\'re running into bugs in the older version.</p>\n'}, {'answer_id': 28528, 'author': 'John Duff', 'author_id': 3041, 'author_profile': 'https://Stackoverflow.com/users/3041', 'pm_score': 2, 'selected': False, 'text': '<p>There is a plugin to use TinyMCE with rails, lots of information on the <a href="http://wiki.rubyonrails.org/rails/pages/HowToUseTinyMCE" rel="nofollow noreferrer">rails wiki</a>.</p>\n'}, {'answer_id': 348596, 'author': 'Tim Knight', 'author_id': 43043, 'author_profile': 'https://Stackoverflow.com/users/43043', 'pm_score': 3, 'selected': False, 'text': '<p>While I know this has been answered I wanted to add regarding the use of textile... I completely agree, but I\'d recommend processing it in a <code>before_save</code> filter. Let\'s say you have a database field called "<code>details</code>" - just add one called "<code>details_html</code>". Then do something like this...</p>\n\n<pre><code>before_save :convert_details\n\ndef convert_details\n  return if self.details.nil?\n  self.details_html = RedCloth.new(self.details).to_html\nend\n</code></pre>\n\n<p>RedCloth can get a little process heavy and if you are constantly processing the stuff on each render you\'re going to run into some memory issues... this will just help lower some of your needed resources.</p>\n'}, {'answer_id': 641621, 'author': 'Brian Armstrong', 'author_id': 76486, 'author_profile': 'https://Stackoverflow.com/users/76486', 'pm_score': 2, 'selected': False, 'text': '<p>Have a look at <a href="http://livepipe.net/control/textarea" rel="nofollow noreferrer">http://livepipe.net/control/textarea</a>\nfor a WYSIWYG markdown editor with the AJAXY preview mentioned in the chosen answer.</p>\n'}, {'answer_id': 642202, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': "<p>+1 for FCKEditor - there is a great Rails plugin that includes helpers. However it is often overkill as it features everything. In many cases something a little simpler such as jQuery's WYSIWYG editor is great for wrapping a text area input.</p>\n"}, {'answer_id': 2663035, 'author': 'Shripad Krishna', 'author_id': 277537, 'author_profile': 'https://Stackoverflow.com/users/277537', 'pm_score': 3, 'selected': False, 'text': '<p>A similar question: <a href="https://stackoverflow.com/questions/2658969/2661586">What is the best WYSIWYG for Rails - Ruby on Rails Blog</a></p>\n\n<p>I just pasted my same solution here too.</p>\n\n<p>I strongly suggest you give WYSIHAT a try. The biggest problem with the editors mentioned above is its bulky size and "hard-to-customize"(ability). The bad code in most of these editors is a big turn-off. WYSIHAT is more like a framework for a WYSIWYG editor. Extremely easy to customize. Easy to configure. And what more.. Its backed by 37signals. What i would appreiciate about TinyMCE is its paste from word feature which preserves the layout. But if not for that one feature i find the rest really bulky.</p>\n\n<p>Please do read this article: <a href="http://37signals.com/svn/posts/1330-introducing-wysihat-an-eventually-better-open-source-wysiwyg-editor" rel="nofollow noreferrer">http://37signals.com/svn/posts/1330-introducing-wysihat-an-eventually-better-open-source-wysiwyg-editor</a></p>\n\n<p>Tutorial on using WYSIHAT: Part 1: <a href="http://jrmehle.com/2009/01/25/wysiwhat-wysihat-part-1/" rel="nofollow noreferrer">http://jrmehle.com/2009/01/25/wysiwhat-wysihat-part-1/</a></p>\n\n<p>Part 2: <a href="http://jrmehle.com/2009/02/13/wysiwhat-wysihat-part-2/" rel="nofollow noreferrer">http://jrmehle.com/2009/02/13/wysiwhat-wysihat-part-2/</a></p>\n\n<p>And to make your life even easier theres an awesome rails-engine developed by Jeff Kreeftmeijer (80beans.com) for the 37signals WYSIHAT editor: <a href="http://github.com/80beans/wysihat-engine" rel="nofollow noreferrer">http://github.com/80beans/wysihat-engine</a></p>\n\n<p>And heres an article by Jeff Kreeftmeijer: <a href="http://www.80beans.com/2009/10/01/wysihat-engine/" rel="nofollow noreferrer">http://www.80beans.com/2009/10/01/wysihat-engine/</a></p>\n'}, {'answer_id': 3331076, 'author': 'MikeH', 'author_id': 159115, 'author_profile': 'https://Stackoverflow.com/users/159115', 'pm_score': 3, 'selected': False, 'text': '<p>Update for 2010.  I just implemented TinyMCE in a Rails app using the tinyMCE gem.</p>\n\n<p>You can find it here: <a href="http://github.com/kete/tiny_mce" rel="nofollow noreferrer">http://github.com/kete/tiny_mce</a></p>\n\n<p>It took less than 5 minutes and in my basic testing, it\'s working perfectly.  There was a commit in June 2010, so it looks like this is an actively developed gem.</p>\n\n<p>Hope that helps some googlers.</p>\n'}, {'answer_id': 19112065, 'author': 'Jenny Lang', 'author_id': 2594079, 'author_profile': 'https://Stackoverflow.com/users/2594079', 'pm_score': 0, 'selected': False, 'text': "<p>I'm really loving CKeditor gem.  It's much, much more elegant than TinyMCE, especially if you deal with raw HTML.  CKeditor displays on page--TinyMCE gives a popup.  CKeditor allows access to things like all headings right out of the box, too.  TinyMCE requires hacking.</p>\n\n<p>RedCloth's inability to support ALL HTML was a dealbreaker for me.  (Among other things, you can't support giving an image a description OR a caption!!!!)  I didn't mind the markup so much as the complete lack of flexibility.  Plus, it was like learning a new language--a lot of the markup was the opposite of intuitive (like image alignment), and I couldn't possibly imagine asking contributors to learn all that.</p>\n\n<p>For comments, I will use something much lighter weight, though.</p>\n"}, {'answer_id': 21009340, 'author': 'knagode', 'author_id': 322791, 'author_profile': 'https://Stackoverflow.com/users/322791', 'pm_score': 0, 'selected': False, 'text': '<p>I had bad experiences with CKEditor (gem "ckeditor") .. I managed to get it to work on local maschine but had a lot problems when trying to deploy it to Heroku .. It seems like code is too heavy to automatically precompile the code on Heroku ... That means it is quite useless ...</p>\n\n<p>EDIT: \nSolution: make sure that you precompile javascript before deploying it on Heroku.</p>\n'}, {'answer_id': 21566004, 'author': 'Joe', 'author_id': 2221574, 'author_profile': 'https://Stackoverflow.com/users/2221574', 'pm_score': 0, 'selected': False, 'text': '<p>I would use Tiny MCE it is a Java Script solution I have integrated with Web Applications to edit HTML.</p>\n\n<p><a href="http://www.tinymce.com/" rel="nofollow">http://www.tinymce.com/</a></p>\n'}]
['https://Stackoverflow.com/questions/24579', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1632/']