Sha256: 05e711ebc4da97a00e7a1fcbde70a380b3b86668b6bb6171f8021e19c153eb7f

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

require_relative 'textile_editor_initialize'

module SimpleForm
  module ActionViewExtensions
    module FormHelper

      def textile_editor_initialize
        unless request.xhr?
          TextileEditorInitialize.textile_editor_initialize
        else
          [].join("\n").html_safe
        end
      end

    end
  end

  module Inputs
    class TextileEditorInput < Base

      def input(wrapper_options)
        @builder.text_area(attribute_name, merge_wrapper_options(input_html_options, wrapper_options))
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
textile_editor_helper-0.1.4 lib/helpers/simple_form.rb
textile_editor_helper-0.1.3 lib/helpers/simple_form.rb