Sha256: 364b173107bb952648db75ed018449734e4fdfadcef8f7427cd242426f729442
Contents?: true
Size: 872 Bytes
Versions: 4
Compression:
Stored size: 872 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
4 entries across 4 versions & 1 rubygems