Class: Formtastic::Inputs::QuillEditorInput

Inherits:
TextInput
  • Object
show all
Defined in:
lib/formtastic/inputs/quill_editor_input.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/formtastic/inputs/quill_editor_input.rb', line 6

def to_html
  input_wrapping do
    label_html <<
      template.(:div, input_html_options.merge('data-aa-quill-editor': '1')) do
        builder.hidden_field(input_name) <<
          template.(:div, 'data-aa-quill-content': '1') do
            object.send(method).try :html_safe
          end
      end
  end
end