Sha256: 7250e3376c7a4963706fd352db72628fe0bcd5f3f459f9fac8f25e3f156fc73b
Contents?: true
Size: 913 Bytes
Versions: 65
Compression:
Stored size: 913 Bytes
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 # 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 # Asset model classes # config.picture_model { Ckeditor::Picture } # config.attachment_file_model { Ckeditor::AttachmentFile } end
Version data entries
65 entries across 65 versions & 1 rubygems