Sha256: 06c7f809815d6e9c739de5b7c9dccd30d006f67ac922a6b64e147fab4b92f37f

Contents?: true

Size: 574 Bytes

Versions: 10

Compression:

Stored size: 574 Bytes

Contents

/ Example:
/   = wcms_component "forms/redactor_editor",
/     form: f,
/     attribute: :body,
/


ruby:
  # Default Parameters
  form ||= nil
  attribute ||= nil  # attribute name that the editor should be attached to
  add_class ||= ""   # string of additional classes that get appended to class
  input_class ||= "form-control redactor #{add_class}"
  value ||= nil     # only used if form is nil

= wcms_component "shared/embedded_image_uploader"

- if form
  = form.text_area attribute, class: input_class
- else
  = text_area_tag attribute, value, class: input_class

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
biola_wcms_components-0.25.4 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.25.3 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.25.2 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.25.1 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.25.0 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.24.3 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.24.2 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.24.1 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.24.0 app/views/wcms_components/forms/_redactor_editor.html.slim
biola_wcms_components-0.23.0 app/views/wcms_components/forms/_redactor_editor.html.slim