Sha256: 8d845bfebbcd2bdd8ab2bc9f446d4a958cdbc939dc1390b5fccdf06355bd9fc6

Contents?: true

Size: 632 Bytes

Versions: 4

Compression:

Stored size: 632 Bytes

Contents

module Inputs
  module EffectiveCkeditorTextArea
    class Input < Effective::FormInput
      delegate :content_tag, :text_area_tag, :asset_path, :to => :@template

      def default_input_js
        {
          effective_assets: defined?(EffectiveAssets).present?,
          effective_ckeditor_js_path: asset_path('effective_ckeditor.js'),
          effective_ckeditor_css_path: asset_path('effective_ckeditor.css')
        }
      end

      def default_input_html
        {class: 'effective_ckeditor_text_area text'}
      end

      def to_html
        text_area_tag(field_name, value, tag_options)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_form_inputs-0.8.11 app/models/inputs/effective_ckeditor_text_area/input.rb
effective_form_inputs-0.8.10 app/models/inputs/effective_ckeditor_text_area/input.rb
effective_form_inputs-0.8.9 app/models/inputs/effective_ckeditor_text_area/input.rb
effective_form_inputs-0.8.8 app/models/inputs/effective_ckeditor_text_area/input.rb