Topic: Rich text editor to integrate into rails app.

Hi everyone,

I'm having troubles to integrate into my app a rich text editor. I need one which has support for image upload and links.

I would like to learn how to handle with this image as well, like how I'm going to save that image from the post body into the server?

Any advices or tutorials?

Thanks in advance!

Last edited by brunosmca (2011-04-22 10:17:15)

Re: Rich text editor to integrate into rails app.

Hey,
I hope you have been able to get a solution for your problem because text editors can be a nightmare. This ofcourse depends on how complex a setup you want.

Long story short: I would suggest (and I am sure alot of people out there too) Tinymce: http://tinymce.moxiecode.com/
There are pretty detailed tuts all over the web and on their website for a basic set up(http://ricroberts.com/articles/tinymce-wysiwyg-text-editor-on-rails). Now with image upload check out Pascals website: http://pascal.vanhecke.info/2005/08/25/ … r-tinymce/
Alternatively I once breadcrumbed my app, on the first step i had the tinymce wysiwyg and step two i used paperclip + rmagick. I found that way easier that doing it all through tinymce.

This attachment has attachment_fu and rmagick. :http://khamsouk.souvanlasy.com/articles/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent