You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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 = 'files/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]
-
- end
|