Class: ActiveAdmin::Inputs::RichTextAreaInput

Inherits:
TextInput
  • Object
show all
Includes:
Adminterface::Extensions::Inputs::Base
Defined in:
lib/adminterface/extensions/inputs/rich_text_area_input.rb

Instance Method Summary collapse

Methods included from Adminterface::Extensions::Inputs::Base::ActiveAdminConfig

#active_admin_config, #inputs_config

Methods included from Adminterface::Extensions::Inputs::Base::Pluginish

#plugin?, #plugins_configs, #plugins_options

Methods included from Adminterface::Extensions::Inputs::Base::Wrapping

#input_wrapping, #input_wrapping_html, #wrapper_classes

Methods included from Adminterface::Extensions::Inputs::Base::Labelling

#label_html_options

Methods included from Adminterface::Extensions::Inputs::TextInput

#input_html

Instance Method Details

#input_html_optionsObject



8
9
10
11
# File 'lib/adminterface/extensions/inputs/rich_text_area_input.rb', line 8

def input_html_options
  opts = super
  opts.merge(class: "trix-content #{opts[:class]}".squish)
end

#to_htmlObject



13
14
15
16
17
18
# File 'lib/adminterface/extensions/inputs/rich_text_area_input.rb', line 13

def to_html
  input_wrapping do
    label_html <<
      builder.rich_text_area(method, input_html_options)
  end
end