Sha256: 05dfa1289f8da05db136bb64e1156bbc3ede9f24cd24de48ddc794211fb35e0c
Contents?: true
Size: 1001 Bytes
Versions: 8
Compression:
Stored size: 1001 Bytes
Contents
RailsKindeditor.setup do |config| # Specify the subfolders in public directory. # You can customize it , eg: config.upload_dir = 'this/is/my/folder' config.upload_dir = 'uploads' # Allowed file types for upload. config.upload_image_ext = %w[gif jpg jpeg png bmp] config.upload_flash_ext = %w[swf flv] config.upload_media_ext = %w[swf flv mp3 wav wma wmv mid avi mpg asf rm rmvb] config.upload_file_ext = %w[doc docx xls xlsx ppt htm html txt zip rar gz bz2] # Porcess upload image size # eg: 1600x1600 => 800x800 # 1600x800 => 800x400 # 400x400 => 400x400 # No Change # config.image_resize_to_limit = [800, 800] # if you have config in your rails application like this: # /config/enviroments/production.rb # # config.action_controller.asset_host = "http://asset.example.com" # # config.assets.prefix = "assets_prefx" # then you should: # # config.asset_url_prefix = "http://asset.example.com/assets_prefx/" if Rails.env.production? end
Version data entries
8 entries across 8 versions & 4 rubygems