Hello Everyone,
I'm new to working with rails and Tiny MCE, but I've got it installed
and working according to the guide here:
http://tinymcehammer.lanalot.com/tutorials/getting_started/
I'm running ruby 1.8.7-p334 and rail 3.0.7.
I can't seem to get any changes made to the config\initializers
\tinymce_hammer.rb to work.
my tinymce is installed to: public\javascripts\tiny_mce
here is my tinymce_hammer.rb file:
Tinymce::Hammer.install_path = '/javascripts/tiny_mce'
Tinymce::Hammer.plugins = %w(safari table paste tabfocus)
Tinymce::Hammer.init = [
[:paste_convert_headers_to_strong, true],
[:paste_convert_middot_lists, true],
[:paste_remove_spans, true],
[:paste_remove_styles, true],
[:paste_strip_class_attributes, true],
[:theme, 'advanced'],
[:theme_advanced_toolbar_align, 'left'],
[:theme_advanced_toolbar_location, 'top'],
[:theme_advanced_buttons1,
'undo,redo,cut,copy,paste,pastetext,|,bold,italic,strikethrough,blockquote,charmap,bullist,numlist,removeformat,|,link,unlink,image,|,cleanup,code'],
[:theme_advanced_buttons2,
'pasteword,|,search,replace,|,tablecontrols,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect'],
[:theme_advanced_buttons3, ''],
[:valid_elements, "a[href|
title],blockquote[cite],br,caption,cite,code,dl,dt,dd,em,i,img[src|alt|
title|width|height|align],li,ol,p,pre,q[cite],small,strike,strong/
b,sub,sup,u,ul"],
]
The default tinymce window is always loaded, none of the customized
buttons load. I can't seem to see where I'm going wrong either.
Thanks in advance for any hints you can throw at me.
-Sean