Skip to content

Commit

Permalink
Add more allowed attachment file types
Browse files Browse the repository at this point in the history
  • Loading branch information
galetahub committed Aug 14, 2011
1 parent 15b3d2a commit d46f211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ckeditor.rb
Expand Up @@ -26,7 +26,7 @@ module Hooks
# Allowed attachment file types for upload. # Allowed attachment file types for upload.
# Set to nil or [] (empty array) for all file types # Set to nil or [] (empty array) for all file types
mattr_accessor :attachment_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 # Default way to setup Ckeditor. Run rails generate ckeditor to create
# a fresh initializer with all configuration values. # a fresh initializer with all configuration values.
Expand Down
3 changes: 1 addition & 2 deletions lib/generators/ckeditor/templates/ckeditor.rb
Expand Up @@ -7,13 +7,12 @@
# available as additional gems. # available as additional gems.
require "ckeditor/orm/<%= options[:orm] %>" require "ckeditor/orm/<%= options[:orm] %>"



# Allowed image file types for upload. # Allowed image file types for upload.
# Set to nil or [] (empty array) for all file types # Set to nil or [] (empty array) for all file types
# config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"] # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"]


# Allowed attachment file types for upload. # Allowed attachment file types for upload.
# Set to nil or [] (empty array) for all file types # 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
end end

0 comments on commit d46f211

Please sign in to comment.