Sha256: b645ec87e3f0f61a069d4d4a35b90548aa5478d33ba04ee5320ed93fb4eced60

Contents?: true

Size: 877 Bytes

Versions: 8

Compression:

Stored size: 877 Bytes

Contents

require "rich"

if Object.const_defined?("Rich")
  
  Rich.setup do |config|    
    
    # Customize ckeditor by adding configuration to config.editor (you can use any ckeditor config directive)
    # Look at the Rich source for default settings. These settings can also be overridden per editor instance.
    # Example: config.editor[:skin] = 'office2003' # ill advice, but you get the idea
    # Example: config.editor[:startupOutlineBlocks] = false

    config.image_styles = {
      :large => "500x500",
      :thumb => "100x100#"
    }
    
    # config.allowed_styles = :all # this is the default - show all styles
    # config.allowed_styles = [ :large, :original ]
    # config.allowed_styles = [ :large, :thumb ]
    
    config.default_style = :large
    
    config.authentication_method = :authenticate_admin_user!
    
  end
  
  # activate Rich
  Rich.insert
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rich-1.2.0 test/dummy/config/initializers/rich.rb
rich-1.1.0 test/dummy/config/initializers/rich.rb
rich-1.0.3 test/dummy/config/initializers/rich.rb
rich-1.0.2 test/dummy/config/initializers/rich.rb
rich-1.0.1 test/dummy/config/initializers/rich.rb
rich-1.0.0 test/dummy/config/initializers/rich.rb
rich-0.0.8 test/dummy/config/initializers/rich.rb
rich-0.0.7 test/dummy/config/initializers/rich.rb