Sha256: 00e5d038d59da650ae5f28b74dc3676fc3344f4fa5e1a347debd1a36c2f0b3f9
Contents?: true
Size: 1012 Bytes
Versions: 16
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
16 entries across 16 versions & 1 rubygems