Module: Ckeditor
- Defined in:
- lib/ckeditor.rb,
lib/ckeditor/http.rb,
lib/ckeditor/utils.rb,
lib/ckeditor/engine.rb,
lib/ckeditor/version.rb,
lib/ckeditor/orm/base.rb,
lib/ckeditor/orm/mongoid.rb,
lib/ckeditor/backend/dragonfly.rb,
lib/ckeditor/backend/paperclip.rb,
lib/ckeditor/orm/active_record.rb,
lib/ckeditor/backend/carrierwave.rb,
lib/ckeditor/helpers/controllers.rb,
lib/ckeditor/helpers/form_helper.rb,
lib/ckeditor/helpers/view_helper.rb,
lib/ckeditor/helpers/form_builder.rb,
lib/generators/ckeditor/install_generator.rb
Defined Under Namespace
Modules: Backend, Generators, Helpers, Hooks, Http, Orm, Utils, Version
Classes: ApplicationController, Asset, AttachmentFile, AttachmentFilesController, Engine, Picture, PicturesController
Constant Summary
collapse
- IMAGE_TYPES =
['image/jpeg', 'image/png', 'image/gif', 'image/jpg', 'image/pjpeg', 'image/tiff', 'image/x-png']
- @@image_file_types =
["jpg", "jpeg", "png", "gif", "tiff"]
- @@attachment_file_types =
["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "tar.gz", "swf"]
- @@relative_path =
'/assets/ckeditor'
- @@assets =
nil
- @@parameterize_filenames =
true
Class Method Summary
collapse
Class Method Details
.assets ⇒ Object
59
60
61
62
63
64
|
# File 'lib/ckeditor.rb', line 59
def self.assets
@@assets ||= begin
Utils.select_assets("vendor/assets/javascripts/ckeditor", "vendor/assets/javascripts") +
Utils.select_assets("app/assets/javascripts/ckeditor/plugins", "app/assets/javascripts")
end
end
|
.attachment_file_model ⇒ Object
70
71
72
|
# File 'lib/ckeditor.rb', line 70
def self.attachment_file_model
Ckeditor::AttachmentFile.to_adapter
end
|
.picture_model ⇒ Object
66
67
68
|
# File 'lib/ckeditor.rb', line 66
def self.picture_model
Ckeditor::Picture.to_adapter
end
|
.root_path ⇒ Object
55
56
57
|
# File 'lib/ckeditor.rb', line 55
def self.root_path
@root_path ||= Pathname.new( File.dirname(File.expand_path('../', __FILE__)) )
end
|
.setup {|_self| ... } ⇒ Object
Default way to setup Ckeditor. Run rails generate ckeditor to create a fresh initializer with all configuration values.
51
52
53
|
# File 'lib/ckeditor.rb', line 51
def self.setup
yield self
end
|