Sha256: 0169fc170b552e8fafff0bd32e5fbfd9eb135366a44531ed6721213bcc6f5303

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

# = simple_form_for @thing do |f|
#   = f.input :body_content, :as => :effective_ckeditor_text_area

if defined?(SimpleForm)

  class EffectiveCkeditorTextAreaInput < SimpleForm::Inputs::StringInput
    def input(wrapper_options = nil)
      Inputs::EffectiveCkeditorTextarea::Input.new(object, object_name, template, attribute_name, input_options, (merge_wrapper_options(input_html_options, wrapper_options) || {})).to_html
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_form_inputs-0.8.2 app/models/inputs/effective_ckeditor_text_area_input.rb
effective_form_inputs-0.8.1 app/models/inputs/effective_ckeditor_text_area_input.rb
effective_form_inputs-0.8.0 app/models/inputs/effective_ckeditor_text_area_input.rb