Sha256: 0fb2b51cfdaadc7b5d44f24bb6817eb26a216bef629989c83c3bf6e4114b66b1
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
class MarkdownInput < SimpleForm::Inputs::Base def input suffix = input_options[:suffix] id = "wmd-input#{suffix}" input_html_options.merge!({id: id}) template.content_tag(:div, class: 'wmd-panel') do template.content_tag(:div, '', id: "wmd-button-bar#{suffix}") + @builder.text_area(attribute_name, input_html_options) end + template.content_tag(:div, '', id: id, class: 'wmd-preview') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_form_markdown_editor_bootstrap-0.0.1 | lib/simple_form_markdown_editor_bootstrap/markdown_input.rb |