Class: RichTextAreaInput

Inherits:
SimpleForm::Inputs::Base
  • Object
show all
Defined in:
lib/kowl/templates/app/inputs/rich_text_area_input.rb

Overview

Enable RichTextArea input type for simple_form

> github.com/plataformatec/simple_form/issues/1638

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



6
7
8
9
10
# File 'lib/kowl/templates/app/inputs/rich_text_area_input.rb', line 6

def input(wrapper_options = nil)
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  @builder.rich_text_area(attribute_name, merged_input_options)
end