Sha256: 2ef0729bcc068a345b52fca6467775b44de96a8d94549325df6a9eecfac328e7

Contents?: true

Size: 996 Bytes

Versions: 10

Compression:

Stored size: 996 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://headmin.dev/docs/forms/redactorx
  # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
  # https://apidock.com/rails/ActionView/Helpers/FormHelper/text_area
  #
  # ==== Examples
  #   Basic version
  #   <%= form_with do |form| %#>
  #     <%= render "formstrap/redactorx", form: form, attribute: :text %#>
  #   <% end %#>

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
formstrap-0.3.3 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.3.2 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.3.1 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.3.0 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.2.1 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.2.0 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.1.3 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.1.2 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.1.1 app/views/formstrap/_wysiwyg.html.erb
formstrap-0.1.0 app/views/formstrap/_wysiwyg.html.erb