Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add more allowed attachment file types

  • Loading branch information...
commit d46f211509852867fcec35bf319f18569055e224 1 parent 15b3d2a
@galetahub authored
View
2  lib/ckeditor.rb
@@ -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.
View
3  lib/generators/ckeditor/templates/ckeditor.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.