Sha256: 22a2388237b50c19c5de65e125800a2c733f869543a4e83f13f344bd0d1fa467

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

module Formtastic
  module Inputs
    class MarkdownEditorInput < Formtastic::Inputs::StringInput
      def input_html_options
        super.merge(class: 'simple-mde-input')
      end

      def to_html
        input_wrapping do
          label_html << builder.text_area(method, input_html_options)
        end.html_safe
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin-markdown_editor-0.0.3 lib/active_admin/formtastic/inputs/markdown_editor_input.rb