Sha256: 10b25178a8633ff51a721c738280e0d905c3757e8d1d5602150f36536204a44b
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
require 'orm_adapter' module Ckeditor IMAGE_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/jpg', 'image/pjpeg', 'image/tiff', 'image/x-png'] autoload :Utils, 'ckeditor/utils' autoload :Http, 'ckeditor/http' module Helpers autoload :ViewHelper, 'ckeditor/helpers/view_helper' autoload :FormHelper, 'ckeditor/helpers/form_helper' autoload :FormBuilder, 'ckeditor/helpers/form_builder' autoload :Controllers, 'ckeditor/helpers/controllers' end module Hooks autoload :FormtasticBuilder, 'ckeditor/hooks/formtastic' autoload :SimpleFormBuilder, 'ckeditor/hooks/simple_form' end # Allowed image file types for upload. # Set to nil or [] (empty array) for all file types mattr_accessor :image_file_types @@image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"] # 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"] # Default way to setup Ckeditor. Run rails generate ckeditor to create # a fresh initializer with all configuration values. def self.setup yield self end def self.picture_model Ckeditor::Picture.to_adapter end def self.attachment_file_model Ckeditor::AttachmentFile.to_adapter end end require 'ckeditor/engine' require 'ckeditor/version'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.6.0 | lib/ckeditor.rb |
ckeditor-3.6.0.pre | lib/ckeditor.rb |