Sha256: 3ad380f61368ddb5362dc5ae1379325e2cdafe753f103d6d2787872cdba216e8

Contents?: true

Size: 520 Bytes

Versions: 6

Compression:

Stored size: 520 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"
    }
  }

- input_html = field.html_attributes.reverse_merge(:data => { :richtext => 'ckeditor', :options => js_data.to_json })
= form.input field.method_name, as: :text, label: field.label, hint: field.help, required: field.required?, input_html: input_html

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basepack-1.0.1 app/views/forms/edit/_form_ck_editor.html.haml
basepack-1.0.0 app/views/forms/edit/_form_ck_editor.html.haml
basepack-1.0.0.pre.0 app/views/forms/edit/_form_ck_editor.html.haml
basepack-0.2.0 app/views/forms/edit/_form_ck_editor.html.haml
basepack-0.1.0 app/views/forms/edit/_form_ck_editor.html.haml
basepack-0.0.2 app/views/forms/edit/_form_ck_editor.html.haml