Class: Inputs::EffectiveCkeditorTextArea::Input
Instance Method Summary
collapse
#field_name, #html_options, #initialize, #js_options, #options, #value
Instance Method Details
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
|
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_html ⇒ Object
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
|