Class: Trix::SimpleForm::TrixEditorInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- Trix::SimpleForm::TrixEditorInput
- Defined in:
- lib/trix/simple_form/trix_editor_input.rb
Instance Method Summary collapse
Instance Method Details
#input(_wrapper_options) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/trix/simple_form/trix_editor_input.rb', line 4 def input() editor_tag = template.content_tag('trix-editor', '', input: input_class, class: 'trix-content') hidden_field = @builder.hidden_field(attribute_name, ) template.content_tag('div', editor_tag + hidden_field, class: 'trix-editor-wrapper') end |