Class: Inputs::EffectiveCkeditorTextArea::Input

Inherits:
Effective::FormInput show all
Defined in:
app/models/inputs/effective_ckeditor_text_area/input.rb

Instance Method Summary collapse

Methods inherited from Effective::FormInput

#field_name, #html_options, #initialize, #js_options, #options, #value

Constructor Details

This class inherits a constructor from Effective::FormInput

Instance Method Details

#default_input_htmlObject



14
15
16
# File 'app/models/inputs/effective_ckeditor_text_area/input.rb', line 14

def default_input_html
  {class: 'effective_ckeditor_text_area text'}
end

#default_input_jsObject



6
7
8
9
10
11
12
# File 'app/models/inputs/effective_ckeditor_text_area/input.rb', line 6

def default_input_js
  {
    effective_assets: defined?(EffectiveAssets).present?,
    effective_ckeditor_js_path: asset_path('effective_ckeditor.js'),
    effective_ckeditor_css_path: asset_path('effective_ckeditor.css')
  }
end

#to_htmlObject



18
19
20
# File 'app/models/inputs/effective_ckeditor_text_area/input.rb', line 18

def to_html
  text_area_tag(field_name, value, tag_options)
end