Method: Tolaria::FormBuildable#markdown_composer

Defined in:
lib/tolaria/form_buildable.rb

#markdown_composer(method, options = {}) ⇒ Object

Renders a Markdown composer element for editing method, with fullscreen previewing and some text assistance tools. Requires that you set Tolaria.config.markdown_renderer. Options are forwarded to text_area.



52
53
54
55
56
57
58
# File 'lib/tolaria/form_buildable.rb', line 52

def markdown_composer(method, options = {})
  render(partial:"admin/shared/forms/markdown_composer", locals: {
    f: self,
    method: method,
    options: options,
  })
end