: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 Johannsson <[email protected]>
wrote:
> 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
>
> On Sat, Aug 22, 2009 at 12:17 AM, heimdull<[email protected]> wrote:
>
> > And...
>
> > in your application.html.erb (layout)
> > <head>
> > <%= include_tiny_mce_if_needed %>
> > </head>
>
> > in the view:
> > <%= f.text_area "content", :class => 'mceEditor' %>
>
> > On Aug 21, 1:44 pm, Trausti Thor Johannsson <[email protected]>
> > wrote:
> >> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---