#22 new
steven_noble

Help with customising buttons please

Reported by steven_noble | April 7th, 2010 @ 01:00 AM

I have added tiny_mce to the development version of my site -- thanks!

However, I cannot add to the default set of buttons it diplays.

Here is the code I am using, in the hope of letting users add hyperlinks...

class PostsController < ApplicationController

uses_tiny_mce :options => {:theme_advanced_buttons1 => "link"}

Can I trouble you to show me where I'm going wrong.

A configuration example focused specifically on adding buttons to TinyMCE would be a handy addition to the 'read me'.

Comments and changes to this ticket

  • steven_noble

    steven_noble April 7th, 2010 @ 01:16 AM

    Actually, I think the problem is more general than just with adding buttons, as the following is failing to move the toolbar to the top of the editing area:

    class PostsController < ApplicationController

    uses_tiny_mce :options => {:theme_advanced_buttons1 => "anchor", :theme_advanced_toolbar_location => "top"}

  • steven_noble

    steven_noble April 7th, 2010 @ 10:27 AM

    My fault. I was skipping over a basic TinyMCE concept -- the need to specify a them. This works:

    uses_tiny_mce :options => {:theme => "advanced", :theme_advanced_buttons1 => "anchor", :theme_advanced_toolbar_location => "top"}

    This ticket is now closable.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.

People watching this ticket

Pages