Module: Ckeditor::Rails

Defined in:
lib/ckeditor-rails.rb,
lib/ckeditor-rails/asset.rb,
lib/ckeditor-rails/engine.rb,
lib/ckeditor-rails/engine3.rb,
lib/ckeditor-rails/railtie.rb,
lib/ckeditor-rails/version.rb

Defined Under Namespace

Classes: Asset, Engine, Railtie

Constant Summary collapse

VERSION =
'4.10.0'
EDITOR_VERSION =
'4.10.0'
@@assets_languages =
nil
@@assets_plugins =
nil
@@assets_skins =
nil

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/ckeditor-rails.rb', line 16

def configure
  yield self
end

.default_pluginsObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/ckeditor-rails.rb', line 24

def default_plugins
  %W[
    a11yhelp
    about
    clipboard
    colordialog
    dialog
    div
    find
    flash
    forms
    iframe
    image
    link
    liststyle
    pastefromword
    preview
    scayt
    smiley
    specialchar
    table
    tabletools
    templates
    wsc
  ]
end

.default_skinsObject



51
52
53
# File 'lib/ckeditor-rails.rb', line 51

def default_skins
  %w[moono]
end

.root_pathObject



20
21
22
# File 'lib/ckeditor-rails.rb', line 20

def root_path
  @root_path ||= Pathname.new(File.expand_path('..', __FILE__))
end