Sha256: 55d6f77762b0b70e5f84da992d11654c37bfc990f28a01ae948992a3a7299236

Contents?: true

Size: 1.45 KB

Versions: 7

Compression:

Stored size: 1.45 KB

Contents

# Use this hook to configure 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/active_record"

  # Allowed image file types for upload.
  # Set to nil or [] (empty array) for all file types
  # By default: %w(jpg jpeg png gif tiff)
  # 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
  # By default: %w(doc docx xls odt ods pdf rar zip tar tar.gz swf)
  # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]

  # Setup authorization to be run as a before filter
  # By default: there is no authorization.
  # config.authorize_with :cancan

  # Asset model classes
  # config.picture_model { Ckeditor::Picture }
  # config.attachment_file_model { Ckeditor::AttachmentFile }

  # Paginate assets
  # By default: 24
  # config.default_per_page = 24

  # Customize ckeditor assets path
  # By default: nil
  # config.asset_path = "http://www.example.com/assets/ckeditor/"

  # To reduce the asset precompilation time, you can limit plugins and/or languages to those you need:
  # By default: nil (no limit)
  # config.assets_languages = ['en', 'uk']
  # config.assets_plugins = ['image', 'smiley']
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
web_admin-0.1.0 config/initializers/ckeditor.rb
web_admin-0.0.2 config/initializers/ckeditor.rb
web_admin-0.0.1 config/initializers/ckeditor.rb
carnival-0.1.3 test/carnival-sample-application/config/initializers/ckeditor.rb
carnival-0.1.2 test/carnival-sample-application/config/initializers/ckeditor.rb
carnival-0.1.1 test/carnival-sample-application/config/initializers/ckeditor.rb
carnival-0.1.0 test/carnival-sample-application/config/initializers/ckeditor.rb