config/initializers/ckeditor.rb in georgia-0.7.8 vs config/initializers/ckeditor.rb in georgia-0.8.0
- old
+ new
@@ -1,18 +1,38 @@
# Use this hook to configure ckeditor
-if Object.const_defined?("Ckeditor")
- Ckeditor.setup do |config|
- # ==> ORM configuration
- # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
- # :mongoid (bson_ext recommended) by default. Other ORMs may be
- # available as additional gems.
- require "ckeditor/orm/active_record"
+Ckeditor.setup do |config|
+ # ==> ORM configuration
+ # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
+ # available as additional gems.
+ require "ckeditor/orm/active_record"
- # 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"]
+ config.assets_languages = ['en', 'fr']
- # Allowed attachment file types for upload.
- # Set to nil or [] (empty array) for all file types
- # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
- end
+ # Allowed image file types for upload.
+ # Set to nil or [] (empty array) for all file types
+ # By default: %w(jpg jpeg png gif tiff)
+ # 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
+ # By default: %w(doc docx xls odt ods pdf rar zip tar tar.gz swf)
+ # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
+
+ # Setup authorization to be run as a before filter
+ # By default: there is no authorization.
+ # config.authorize_with :cancan
+
+ # Asset model classes
+ # config.picture_model { Ckeditor::Picture }
+ # config.attachment_file_model { Ckeditor::AttachmentFile }
+
+ # Paginate assets
+ # By default: 24
+ # config.default_per_page = 24
+
+ # Customize ckeditor assets path
+ # By default: nil
+ # config.asset_path = "http://www.example.com/assets/ckeditor/"
end
+
+Rails.application.config.assets.precompile += %w( ckeditor/* )
\ No newline at end of file