Sha256: 5dd68f484256f8f849f5127f8e501d4f64ec95ba403449a294fb731e9e7ec7e3
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
:ruby if field.ckeditor richtext = 'ckeditor' js_data = { :jspath => field.ckeditor_location ? field.ckeditor_location : field.ckeditor_base_location + "ckeditor.js", :base_location => field.ckeditor_base_location, :options => { :customConfig => field.ckeditor_config_js ? field.ckeditor_config_js : field.ckeditor_base_location + "config.js" } } elsif field.codemirror richtext = 'codemirror' js_data = { :csspath => field.codemirror_css_location, :jspath => field.codemirror_js_location, :options => field.codemirror_config, :locations => field.codemirror_assets } else richtext = false js_data = {} end = form.text_area field.method_name, field.html_attributes.reverse_merge(:data => { :richtext => richtext, :options => js_data.to_json }).reverse_merge((hdv = field.html_default_value).nil? ? { :value => field.formatted_value } : { :value => hdv })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-0.0.5 | app/views/rails_admin/main/_form_text.html.haml |