Sha256: 78968ce346a78139c11dd380e2a9ee4285dd1bb7412d413dbfa804bfd13ad593
Contents?: true
Size: 1012 Bytes
Versions: 1
Compression:
Stored size: 1012 Bytes
Contents
<% # headmin/forms/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 'headmin/forms/redactorx', form: form, attribute: :text %#> # <% end %#> wysiwyg = Headmin::Form::WysiwygView.new(local_assigns) %> <%= render 'headmin/forms/redactorx', wysiwyg.options %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.2 | app/views/headmin/forms/_wysiwyg.html.erb |