Sha256: 99c9259504fec81089d87525ef52a7d313821e5f16a9922ee1210368c16f981e
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
:ruby url = (ENV['RAILS_URL'].blank? || ENV['RAILS_RELATIVE_URL_ROOT'].blank?) ? "http://localhost:3000/assets/ckeditor/" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}/assets/ckeditor/" js_data = { # jspath: field.location ? field.location : url + field.base_location + "ckeditor.js", jspath: url + "ckeditor.js", base_location: url, options: { # customConfig: field.config_js ? field.config_js : url + field.base_location + "config.js" customConfig: url + "config.js" } } = form.text_area field.method_name, field.html_attributes.reverse_merge(data: { richtext: 'ckeditor', options: js_data.to_json }).reverse_merge({ value: field.form_value })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_ui_layout_taris-1.3.1 | app/views/rails_admin/main/_form_ck_editor.html.haml.old |
rails_admin_ui_layout_taris-1.3.0 | app/views/rails_admin/main/_form_ck_editor.html.haml |