Sha256: 4ef0ce88a18e8a5af40eb643baf37a32b6d58fe5cb495aa2a546022b7199c648
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
require_relative 'textile_editor_initialize' module Formtastic module Helpers module FormHelper def textile_editor_initialize if request.xhr? [].join("\n").html_safe else TextileEditorInitialize.textile_editor_initialize end end end end module Inputs class TextileEditorInput include Base include Base::Placeholder def input_html_options { cols: builder.default_text_area_width, rows: builder.default_text_area_height, class: 'textile_editor' }.merge(super) end def to_html input_wrapping do label_html << builder.text_area(method, input_html_options) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
textile_editor_helper-0.1.4 | lib/helpers/formtastic.rb |
textile_editor_helper-0.1.3 | lib/helpers/formtastic.rb |
textile_editor_helper-0.1.2 | lib/helpers/formtastic.rb |