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/hooks/formtastic.rb,
lib/ckeditor/backend/paperclip.rb,
lib/ckeditor/hooks/simple_form.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/models_generator.rb,
lib/generators/ckeditor/install_generator.rb
Defined Under Namespace
Modules: Backend, Generators, Helpers, Hooks, Http, Orm, Utils, Version Classes: Asset, AttachmentFile, AttachmentFilesController, BaseController, 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"]
Class Method Summary collapse
- .attachment_file_model ⇒ Object
- .picture_model ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Default way to setup Ckeditor.
Class Method Details
.attachment_file_model ⇒ Object
46 47 48 |
# File 'lib/ckeditor.rb', line 46 def self. Ckeditor::AttachmentFile.to_adapter end |
.picture_model ⇒ Object
42 43 44 |
# File 'lib/ckeditor.rb', line 42 def self.picture_model Ckeditor::Picture.to_adapter end |
.setup {|_self| ... } ⇒ Object
Default way to setup Ckeditor. Run rails generate ckeditor to create a fresh initializer with all configuration values.
38 39 40 |
# File 'lib/ckeditor.rb', line 38 def self.setup yield self end |