Module: HoboCkeditor

Defined in:
lib/hobo_ckeditor.rb,
lib/hobo_ckeditor/railtie.rb

Defined Under Namespace

Classes: Engine, Railtie

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../VERSION', __FILE__)).strip
DEFAULT_EDITOR_SETTINGS =
{
    :plugins => 'dialogui,dialog,about,a11yhelp,basicstyles,blockquote,clipboard,colordialog,colorbutton,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,list,indent,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,htmlwriter,horizontalrule,wysiwygarea,image,fakeobjects,link,magicline,maximize,pastetext,pastefromword,removeformat,sourcearea,specialchar,menubutton,scayt,stylescombo,tab,table,tabletools,undo,wsc',
    :skin => 'moono',
    :preset => 'standard',
    :toolbarGroups => [
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        { name: 'links' },
        { name: 'insert' },
        { name: 'forms' },
        { name: 'tools' },
        { name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'others' },
        '/',
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align' ] },
        { name: 'styles' },
        { name: 'colors' }
    ],
    :removeButtons => 'Subscript,Superscript'
}
'https://github.com/my_github_username/hobo_ckeditor/edit/master'
@@root =
Pathname.new File.expand_path('../..', __FILE__)

Class Method Summary collapse

Class Method Details

.default_editor_settingsObject



46
47
48
# File 'lib/hobo_ckeditor.rb', line 46

def self.default_editor_settings()
  HoboCkeditor::DEFAULT_EDITOR_SETTINGS
end

.rootObject



35
# File 'lib/hobo_ckeditor.rb', line 35

def self.root; @@root; end