Class: SimpleFormMarkdownEditor::MarkdownEditorInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- SimpleFormMarkdownEditor::MarkdownEditorInput
- Defined in:
- lib/simple_form_markdown_editor/markdown_editor_input.rb
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/simple_form_markdown_editor/markdown_editor_input.rb', line 7 def configuration @configuration end |
Class Method Details
.configure {|@configuration| ... } ⇒ Object
9 10 11 12 |
# File 'lib/simple_form_markdown_editor/markdown_editor_input.rb', line 9 def configure @configuration ||= Configuration.new yield @configuration end |
Instance Method Details
#input(wrapper_options) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/simple_form_markdown_editor/markdown_editor_input.rb', line 21 def input() attrs = (, ) attrs[:data] ||= {} attrs[:data][:preview_path] = preview_path attrs[:data][:options] = { render_class: render_class.to_s, render_options: , extensions: extensions } template.content_tag :div, attrs do template.concat header template.concat help template.concat editor template.concat preview end end |