Class: Inputs::EffectiveCkeditorTextArea::Input
Instance Method Summary
collapse
#field_name, #html_options, #initialize, #js_options, #options, #value
Instance Method Details
18
19
20
|
# File 'app/models/inputs/effective_ckeditor_text_area/input.rb', line 18
def default_input_html
{class: 'effective_ckeditor_text_area text'}
end
|
6
7
8
9
10
11
12
13
14
15
16
|
# 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'),
contentsCss: (options[:contentCss] || asset_path('application.css')),
toolbar: options[:toolbar],
height: options[:height],
width: options[:width]
}.compact
end
|
#to_html ⇒ Object
22
23
24
|
# File 'app/models/inputs/effective_ckeditor_text_area/input.rb', line 22
def to_html
text_area_tag(field_name, value, tag_options)
end
|