Sha256: a129df182ed45edef689575a5165f16d1890d97324f8886cd78a02eb7653b5d4

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

<%
  # formstrap/redactor
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute of the form model
  # * +form+ - Form object
  #
  # ==== Optional parameters
  # * +append+ - Display as input group with text on the right-hand side
  # * +hint+ - Informative text to assist with data input. HTML markup is allowed.
  # * +label+ - Text to display inside label tag. Defaults to the attribute name. Set to false if you don"t want to show a label.
  # * +prepend+ - Display as input group with text on the left-hand side
  # * +redactor+ - Hash with all options you can pass to redactor JS config
  # * +wrapper+ - Hash with all options for the surrounding html tag
  #
  # ==== References
  # https://imperavi.com/redactor/docs
  #
  # ==== Examples
  #   Basic version
  #   <%= form_with do |form| %#>
  #     <%= render "formstrap/redactor", form: form, attribute: :text %#>
  #   <% end %#>

  redactor = Formstrap::RedactorView.new(local_assigns)
%>

<%= render "formstrap/textarea", redactor.options %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/views/formstrap/_redactor.html.erb
formstrap-0.4.4 app/views/formstrap/_redactor.html.erb
formstrap-0.4.3 app/views/formstrap/_redactor.html.erb
formstrap-0.4.2 app/views/formstrap/_redactor.html.erb
formstrap-0.3.5 app/views/formstrap/_redactor.html.erb
formstrap-0.3.4 app/views/formstrap/_redactor.html.erb