# Is there a wysiwyg editor in RoR?

**URL:** <https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511>\
**Category:** Rails\
**Created:** [July 16, 2007, 6:11am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511 "2007-07-16T06:11:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 16, 2007, 6:11am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/1 "2007-07-16T06:11:55Z")

</div>

subject sums it up.

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 16, 2007, 6:26am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/2 "2007-07-16T06:26:56Z")

</div>

Sketchy wrote:

> subject sums it up.

Google sums it up 🙂  
[http://www.google.com.sg/search?hl=en&q=wysiwyg+editor+in+RoR](http://www.google.com.sg/search?hl=en&q=wysiwyg+editor+in+RoR)

I think the main options are: TinyMCE and FckEditor I think

Cheers,  
Mohit.  
7/16/2007 | 12:26 PM.

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 16, 2007, 7:09am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/3 "2007-07-16T07:09:58Z")

</div>

bah I guess I had the wrong keywords when I checked google… thanks

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 16, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/4 "2007-07-16T18:05:39Z")

</div>

On 16 Jul 2007, at 18:10, Philip H. wrote:

> > I think the main options are: TinyMCE and FckEditor I think
> 
> Of the two we’ve found FckEditor to work better… there’s a Rails  
> plugin  
> for it as well to make it easier to integrate. And it supports AJAX  
> forms, which if my memory is right TinyMCE didn’t (at the time  
> anyway).

It can be done with TinyMCE, but it’s a pain.

[http://daveastels.com/2006/10/29/using-tinymce-with-rails-ajax/](http://daveastels.com/2006/10/29/using-tinymce-with-rails-ajax/)

That said, none of the wysiwyg editors produce (unless you restrict  
users in what they can do) horrible HTML code, one worse than the other.

You could look into [http://www.wymeditor.org/en/](http://www.wymeditor.org/en/) but I haven’t tried  
it myself (as it doesn’t work on the current safari release, it’s not  
an option for us at the moment).

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 17, 2007, 1:28am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/5 "2007-07-17T01:28:33Z")

</div>

The others have summed up some of the most popular html/javascript  
WYSIWYG  
editors.

However, if you were instead asking whether there is a way to use  
WYSIWYG  
editors with Ruby on Rails (to create the layout and views) then take a  
look  
at the MasterView project which lets you use any standard WYSIWYG HTML  
editor like (Dreamweaver or NVU) with Rails.

[http://masterview.org/](http://masterview.org/)

Blessings,

Jeff

–  
Jeff B., MasterView core team  
Inspired Horizons Ruby on Rails Training and Consultancy  
[http://inspiredhorizons.com/](http://inspiredhorizons.com/)

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 16, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/6 "2007-07-16T17:56:36Z")

</div>

> Sketchy wrote:
> 
> > subject sums it up.
> 
> Google sums it up 🙂  
> [wysiwyg editor in RoR - Google Search](http://www.google.com.sg/search?hl=en&q=wysiwyg+editor+in+RoR)
> 
> I think the main options are: TinyMCE and FckEditor I think

Of the two we’ve found FckEditor to work better… there’s a Rails  
plugin  
for it as well to make it easier to integrate. And it supports AJAX  
forms, which if my memory is right TinyMCE didn’t (at the time anyway).

---

<div class="post-metadata">

**Author:** ![Sketchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Post date:** [July 17, 2007, 2:12am UTC](https://www.ruby-forum.com/t/is-there-a-wysiwyg-editor-in-ror/109511/7 "2007-07-17T02:12:36Z")

</div>

I’ve tested out WymEditor and I have to say that I like it. For the  
older version, there is a rails plugin:  
[http://dev.wymeditor.org/wiki/index.php/Docs/WymOnRails](http://dev.wymeditor.org/wiki/index.php/Docs/WymOnRails)

Also, the latest version has a branch which has safari support here:  
[http://files.wymeditor.org/wymeditor/branches/new\_parser/](http://files.wymeditor.org/wymeditor/branches/new_parser/)

Finally, they have some details about safari development here:  
[http://dev.wymeditor.org/wiki/index.php/Safari](http://dev.wymeditor.org/wiki/index.php/Safari) with notes about the  
safari implementation here:  
[http://dev.wymeditor.org/wiki/index.php/Safari/ExecCommand](http://dev.wymeditor.org/wiki/index.php/Safari/ExecCommand)

nkryptic
