Class: Formtastic::Inputs::QuillEditorInput
- Inherits:
-
TextInput
- Object
- TextInput
- Formtastic::Inputs::QuillEditorInput
- Defined in:
- lib/formtastic/inputs/quill_editor_input.rb
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/formtastic/inputs/quill_editor_input.rb', line 4 def to_html input_wrapping do label_html << template.content_tag( :div, .merge( class: 'quill-editor' ) ) do builder.hidden_field( input_name ) << template.content_tag( :div, class: 'quill-editor-content' ) do object.send( method ).try :html_safe end end end end |