class HtmlEditorInput < Formtastic::Inputs::TextInput def toolbar <<-HTML
Source Bold Italic Link Image Bulleted List Numbered List h1 h2 h3 #{%Q{Save} if input_html_options[:quicksave]}
HTML end def input_html_options { quicksave: false }.merge(super) end def to_html html = '
' html << toolbar.html_safe html << builder.text_area(method, input_html_options) html << '
' input_wrapping do label_html << html.html_safe end end end