Module: TinymceControllerValidActionOverride
- Defined in:
- lib/kete_translatable_content/extensions/tinymce_controller_valid_action_override.rb
Overview
this is necessary for translate ajax lighbox to be able to use tinymce for description attribute for ITEM_CLASSES
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/kete_translatable_content/extensions/tinymce_controller_valid_action_override.rb', line 6 def self.included(klass) def add_show_as_uses_tiny_mce instance_variable_set(:@uses_tiny_mce, true) end private :add_show_as_uses_tiny_mce klass.send :before_filter, :add_show_as_uses_tiny_mce, :only => [:show] end |
Instance Method Details
#add_show_as_uses_tiny_mce ⇒ Object
7 8 9 |
# File 'lib/kete_translatable_content/extensions/tinymce_controller_valid_action_override.rb', line 7 def add_show_as_uses_tiny_mce instance_variable_set(:@uses_tiny_mce, true) end |