Module: Tinymce::Hammer
- Defined in:
- lib/tinymce/hammer.rb
Defined Under Namespace
Modules: BuilderMethods, Combiner, ControllerMethods, ViewHelpers
Constant Summary collapse
- @@install_path =
'/javascripts/tiny_mce'
- @@src =
false
- @@setup =
nil
- @@plugins =
['paste']
- @@languages =
['en']
- @@themes =
['advanced']
- @@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 => '', :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" , }
Class Method Summary collapse
Class Method Details
.cache_js ⇒ Object
41 42 43 44 45 |
# File 'lib/tinymce/hammer.rb', line 41 def self.cache_js File.open("#{Rails.root}/public/javascripts/tinymce_hammer.js", 'w') do |file| file.write Combiner.combined_js end end |
.init ⇒ Object
37 38 39 |
# File 'lib/tinymce/hammer.rb', line 37 def self.init @@init end |
.init=(js) ⇒ Object
33 34 35 |
# File 'lib/tinymce/hammer.rb', line 33 def self.init= js @@init = js end |