Sha256: 93a510b11b7d0f3cd62f214b1f092af2e3747d4e707cbd324a84599627887cd8

Contents?: true

Size: 846 Bytes

Versions: 6

Compression:

Stored size: 846 Bytes

Contents

<%
  # formstrap/wysiwyg
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute of the form model
  # * +form+ - Form object
  #
  # ==== Optional parameters
  # * +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.
  # * +toolbar+ - Show toolbar (default true)
  # * +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/wysiwyg", form: form, attribute: :text %#>
  #   <% end %#>

  wysiwyg = Formstrap::WysiwygView.new(local_assigns)
%>

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

Version data entries

6 entries across 6 versions & 1 rubygems

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