Class: Locomotive::MarkdownInput
- Inherits:
-
RteInput
- Object
- SimpleForm::Inputs::Base
- RteInput
- Locomotive::MarkdownInput
show all
- Defined in:
- app/inputs/locomotive/markdown_input.rb
Instance Method Summary
collapse
Methods inherited from RteInput
#image_popover, #link_popover, #remove_form, #table_popover, #wysihtml5_prefix
#translate_from_namespace
Instance Method Details
4
5
6
7
|
# File 'app/inputs/locomotive/markdown_input.rb', line 4
def input(wrapper_options)
input_html_options[:class] << 'form-control'
toolbar_html + @builder.text_area(attribute_name, input_html_options)
end
|
9
10
11
12
13
14
15
16
|
# File 'app/inputs/locomotive/markdown_input.rb', line 9
def toolbar_html
template.render(
partial: 'locomotive/shared/rte/markdown_toolbar',
locals: {
wysihtml5_prefix: wysihtml5_prefix,
image_popover: image_popover,
})
end
|