Permalink
Browse files

Add more allowed attachment file types

  • Loading branch information...
1 parent 15b3d2a commit d46f211509852867fcec35bf319f18569055e224 @galetahub committed Aug 14, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 lib/ckeditor.rb
  2. +1 −2 lib/generators/ckeditor/templates/ckeditor.rb
View
@@ -26,7 +26,7 @@ module Hooks
# Allowed attachment file types for upload.
# Set to nil or [] (empty array) for all file types
mattr_accessor :attachment_file_types
- @@attachment_file_types = ["doc", "docx", "rar", "zip", "xls", "swf"]
+ @@attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
# Default way to setup Ckeditor. Run rails generate ckeditor to create
# a fresh initializer with all configuration values.
@@ -7,13 +7,12 @@
# 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", "rar", "zip", "xls", "swf"]
+ # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
end
end

0 comments on commit d46f211

Please sign in to comment.