Sha256: 1268adbf67b028c5bd8f91025f4bee4bdc5999f5057da70bd1b6f6794627d865

Contents?: true

Size: 844 Bytes

Versions: 6

Compression:

Stored size: 844 Bytes

Contents

# Use this hook to configure ckeditor
if Object.const_defined?("Ckeditor")
  Ckeditor.setup do |config|
    # ==> ORM configuration
    # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
    # :mongoid (bson_ext recommended) by default. Other ORMs may be
    # available as additional gems.
    require "ckeditor/orm/mongoid"

    # Allowed image file types for upload.
    # Set to nil or [] (empty array) for all file types
    # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"]

    # Allowed attachment file types for upload.
    # Set to nil or [] (empty array) for all file types
    # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]

    # Setup authorization to be run as a before filter
    # config.authorize_with :cancan
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ckeditor-4.0.4 test/tmp/config/initializers/ckeditor.rb
ckeditor-4.0.2 test/tmp/config/initializers/ckeditor.rb
ckeditor-4.0.1 test/tmp/config/initializers/ckeditor.rb
ckeditor-4.0.0 test/tmp/config/initializers/ckeditor.rb
ckeditor-4.0.0.rc2 test/tmp/config/initializers/ckeditor.rb
ckeditor-4.0.0.rc1 test/tmp/config/initializers/ckeditor.rb