# Tiny\_mce plugin

**URL:** <https://www.ruby-forum.com/t/tiny-mce-plugin/174184>\
**Category:** Rails\
**Created:** [August 22, 2009, 1:04am UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184 "2009-08-22T01:04:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 1:04am UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/1 "2009-08-22T01:04:37Z")

</div>

Hi all,

I just installed the tiny\_mce plugin and it works as advertised. But  
I can not get any plugin for tinymce to work. They are all there,  
they are installed, they load. But they do not appear.

I have MacBook Pro OS X 10.5.8, core2duo. Running XAMPP, and Ruby on  
Rails 2.3.3, ruby 1.8.6 and using the latest Passenger on Apache.

Here is my controller code :

uses\_tiny\_mce :options =\> {  
:theme =\> ‘advanced’,  
:theme\_advanced\_resizing =\> true,  
:plugins =\> %w{ table spellchecker  
emotions },  
:theme\_advanced\_resize\_horizontal =\>  
false,  
:theme\_advanced\_toolbar\_location =\>  
‘top’  
}

Trausti

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 2:10am UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/2 "2009-08-22T02:10:10Z")

</div>

And…

in your application.html.erb (layout)

\<%= include\_tiny\_mce\_if\_needed %\>

in the view:  
\<%= f.text\_area “content”, :class =\> ‘mceEditor’ %\>

On Aug 21, 1:44 pm, Trausti Thor J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 8:01am UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/3 "2009-08-22T08:01:10Z")

</div>

Do you know you don’t even need the tinymce plugin to get TinyMCE to  
work out of the box?

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 1:24pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/4 "2009-08-22T13:24:28Z")

</div>

Yes, this is exactly as I did it.

But as I do :plugins =\> %w{ table … }

They do not appear. If I use plugins, do I change the :theme to  
something else ?

Trausti

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/5 "2009-08-22T18:43:29Z")

</div>

:plugins =\> %w{ table … }  
Does not mean “table” option will appear.

You need to specify some of those “plugins” in another “options”, like  
“:theme\_advanced\_buttons2”  
uses\_tiny\_mce :options =\> {  
:theme =\> ‘advanced’,  
:theme\_advanced\_resizing =\> true,  
:plugins =\> %w{ table spellchecker  
emotions },  
:theme\_advanced\_resize\_horizontal =\>  
false,  
:theme\_advanced\_buttons1 =\> %w  
{tablecontrols separator ts\_image media fullscreen},  
:theme\_advanced\_toolbar\_location =\>  
‘top’  
}

etc…

here are more detailed usage:  
uses\_tiny\_mce(:options =\> {:theme =\> ‘advanced’,  
:theme\_advanced\_toolbar\_location =\>  
“top”,  
:theme\_advanced\_toolbar\_align =\> “left”,  
:theme\_advanced\_resizing =\> true,  
:paste\_auto\_cleanup\_on\_paste =\> true,  
:editor\_selector =\> “text\_body”,  
:relative\_urls =\> false,  
:fullscreen\_new\_window =\> true,  
:theme\_advanced\_statusbar\_location =\>  
“bottom”,  
:theme\_advanced\_buttons1 =\> %w{bullist  
numlist separator bold italic underline strikethrough separator  
forecolor backcolor},  
:theme\_advanced\_buttons2 =\> %w  
{tablecontrols separator ts\_image media fullscreen},  
:theme\_advanced\_buttons3 =\> %w  
{justifyleft justifycenter justifyright justifyfull separator indent  
outdent separator ltr rtl separator link unlink anchor separator undo  
redo preview separator cut copy paste separator cleanup code},  
:plugins =\> %w{ts\_advimage inlinepopups  
fullscreen table media directionality contextmenu paste advlink  
advhr}},  
:only =\> [:new, :edit, :update, :create])

On Aug 22, 1:54 pm, Trausti Thor J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 22, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/6 "2009-08-22T19:09:49Z")

</div>

Thanks Alexey,

This is what was needed.

Trausti

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 23, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/7 "2009-08-23T15:15:03Z")

</div>

Hi All,

I get now mostly everything working, except for 2 things.

If I press the table button, and add 2 rows and 2 columns, press  
either insert or enter, and the window doesn’t go away.

Is there anyway I could get a picture picker instead of the image  
window that comes up ?

The more pressing issue is the table one. If I go into html mode,  
create a table and then leave the table mode, I do get a fully working  
table.  
Hope someone can help me with this.

Trausti

On Sat, Aug 22, 2009 at 7:01 PM, Trausti Thor

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [August 23, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/8 "2009-08-23T18:17:04Z")

</div>

Hi All,

I found this out. I had in the plugins set ‘image’ but it should have  
been ‘advimage’ and now everything works as it should.

Thanks

Trausti

On Sun, Aug 23, 2009 at 3:08 PM, Trausti Thor

---

<div class="post-metadata">

**Author:** ![Trausti\_Thor\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Post date:** [November 10, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/tiny-mce-plugin/174184/9 "2009-11-10T16:46:06Z")

</div>

git://github.com/sandipransing/rails\_tiny\_mce.git

On Sun, Aug 23, 2009 at 9:29 PM, Trausti Thor J. \<  
removed\_email\_address@domain.invalid\> wrote:

> Trausti
> 
> > Is there anyway I could get a picture picker instead of the image
> 
> wrote:
> 
> > > > emotions },  
> > > > here are more detailed usage:  
> > > > “bottom”,  
> > > > fullscreen table media directionality contextmenu paste advlink
> > > > 
> > > > > something else ?
> > > > > 
> > > > > > \<%= include\_tiny\_mce\_if\_needed %\>  
> > > > > > But
> > > > > > 
> > > > > > > ```
> > > > > > > :theme => 'advanced',
> > > > > > > 
> > > > > > > ```
> 
> >

–  
Sandip

* * *

> **[Fun On Rails](http://funonrails.com/)**
>
> Journal of a Web Developer #ruby #rails #JS
