Sha256: b71db3e6c9e8d31a42adc40c07872748668a3c0017fe35af36c8b5a765b3a5ff

Contents?: true

Size: 888 Bytes

Versions: 52

Compression:

Stored size: 888 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/active_record"

    # 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

    config.assets_languages = ['en']
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
polyblock-1.2.6 config/initializers/ckeditor.rb
polyblock-1.2.5 config/initializers/ckeditor.rb
polyblock-1.2.4 config/initializers/ckeditor.rb
polyblock-1.2.3 config/initializers/ckeditor.rb
polyblock-1.2.2 config/initializers/ckeditor.rb
polyblock-1.2.1 config/initializers/ckeditor.rb
polyblock-1.2.0 config/initializers/ckeditor.rb
polyblock-1.1.1 config/initializers/ckeditor.rb
polyblock-1.1.0 config/initializers/ckeditor.rb
polyblock-1.0.8 config/initializers/ckeditor.rb
polyblock-1.0.7 config/initializers/ckeditor.rb
polyblock-1.0.6 config/initializers/ckeditor.rb
polyblock-1.0.5 config/initializers/ckeditor.rb
polyblock-1.0.4 config/initializers/ckeditor.rb
polyblock-1.0.3 config/initializers/ckeditor.rb
polyblock-1.0.2 config/initializers/ckeditor.rb
polyblock-1.0.1 config/initializers/ckeditor.rb
polyblock-1.0.0 config/initializers/ckeditor.rb
polyblock-0.9.9 config/initializers/ckeditor.rb
polyblock-0.9.8 config/initializers/ckeditor.rb