Class: ActiveScaffold::Bridges::TinyMce

Inherits:
DataStructures::Bridge show all
Defined in:
lib/active_scaffold/bridges/tiny_mce.rb,
lib/active_scaffold/bridges/tiny_mce/helpers.rb

Defined Under Namespace

Modules: Helpers

Class Method Summary collapse

Methods inherited from DataStructures::Bridge

run, stylesheets

Class Method Details

.installObject



2
3
4
# File 'lib/active_scaffold/bridges/tiny_mce.rb', line 2

def self.install
  require File.join(File.dirname(__FILE__), "tiny_mce/helpers.rb")
end

.install?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/active_scaffold/bridges/tiny_mce.rb', line 6

def self.install?
  Object.const_defined? "TinyMCE"
end

.javascriptsObject



10
11
12
# File 'lib/active_scaffold/bridges/tiny_mce.rb', line 10

def self.javascripts
  ['tinymce-jquery', 'jquery/tiny_mce_bridge']
end