简体   繁体   中英

Rich text editor for rails application

I need to add a rich text editor to my website. This my first time doing this, so which rich text editor do you suggest I use? I need one that is fully functional and easy to integrate with a rails application, also I am using prototype.

Thanks in advance:)

A very promising one is the Aloha Editor

You can add an editor like TinyMCE as the posters above have recommended. However IMHO the HTML generated by these editors tends to get messy. I would suggest you look at something like Redcloth . With a text field. And for added bling you could give a ajaxy preview, just like stackoverflow does.. This would be a much more cleaner solution IMHO.

If you are going to use a WYSIWYG editor, take a look at CKeditor and also the Yahoo YUI2 Rich Text Editor .

As for TinyMCE there is a Rails plugin that would make things easier if you decide to use it.

I would suggest TinyMCE which is really easy to implement. You just add an id for the textarea you want to use and then use that id in the configuration of TinyMCE. You could even configure TinyMCE to put a RTE on ALL textareas.

It's written in javascript so it doesn't matter what backend you use.

http://tinymce.moxiecode.com/

And here's an example with source:

http://tinymce.moxiecode.com/tryit/full.php

Aloha looks nice and has some very nice features, but I've run into some annoying bugs. You may want to take a look at Mercury .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM