Sha256: 16440f1b42efe20762070e214bb4823c0a4be63cc5ea2a8012895815d81b600b

Contents?: true

Size: 536 Bytes

Versions: 17

Compression:

Stored size: 536 Bytes

Contents

class ActiveScaffold::Bridges::TinyMce < ActiveScaffold::DataStructures::Bridge
  autoload :Helpers, 'active_scaffold/bridges/tiny_mce/helpers.rb'
  def self.install
    ActionView::Base.class_eval { include ActiveScaffold::Bridges::TinyMce::Helpers }
  end

  def self.install?
    Object.const_defined? "TinyMCE"
  end
 
  def self.javascripts
    case ActiveScaffold.js_framework
    when :jquery
      ['tinymce-jquery', 'jquery/tiny_mce_bridge']
    when :prototype
      ['tinymce', 'prototype/tiny_mce_bridge']
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
active_scaffold-3.4.17 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.16 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.14 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.13 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.12 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.11 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.10 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.9 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.8 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.7 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.5 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.4 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.3 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.2 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.1 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.0.1 lib/active_scaffold/bridges/tiny_mce.rb
active_scaffold-3.4.0 lib/active_scaffold/bridges/tiny_mce.rb