Sha256: cd5d1d1821ae7b712362924acc8dbc2542ddbe355e9ff43a2d1827cfe802be95

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

:ruby
  js_data = {
    :jspath => field.location ? field.location : field.base_location + "ckeditor.js",
    :base_location => field.base_location,
    :options => {
      :customConfig => field.config_js ? field.config_js : field.base_location + "config.js"
    }
  }

= form.text_area field.method_name, field.html_attributes.reverse_merge(:data => { :richtext => 'ckeditor', :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.5.0 app/views/rails_admin/main/_form_ck_editor.html.haml