Sha256: 29300a821da91367013db7f2305ad8c66e129f062f3adca3eaf42a9e0338e70c

Contents?: true

Size: 857 Bytes

Versions: 20

Compression:

Stored size: 857 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/<%= options[:orm] %>"

    # 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

20 entries across 20 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.2.1.5 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.2.1.4 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.2.1.3 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.2.1.2 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.2.1.1 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.2.1 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.7 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.6 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.5 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.4 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.3 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.2 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1.1 lib/generators/ckeditor/templates/ckeditor.rb
glebtv-ckeditor-4.1.1 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.4 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.2 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.1 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.0 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.0.rc2 lib/generators/ckeditor/templates/ckeditor.rb
ckeditor-4.0.0.rc1 lib/generators/ckeditor/templates/ckeditor.rb