Sha256: 887abec5c40331e2f67da2bf10bdf73dd7a5402ed13ec2af88adb48978cedc28

Contents?: true

Size: 796 Bytes

Versions: 23

Compression:

Stored size: 796 Bytes

Contents

module Ckeditor
  module Helpers
    module ViewHelper
      extend ActiveSupport::Concern
      
      def cktext_area_tag(name, content = nil, options = {})
        element_id = sanitize_to_id(options[:id] || name)
        options = { :language => I18n.locale.to_s }.merge(options)
        input_html = { :id => element_id }.merge( options.delete(:input_html) || {} )
        js_content_for_section = options.delete(:js_content_for)
        
        output_buffer = ActiveSupport::SafeBuffer.new
        output_buffer << text_area_tag(name, content, input_html)
        
        js = Utils.js_replace(element_id, options)
        
        output_buffer << (js_content_for_section ? content_for(js_content_for_section, js) : javascript_tag(js))
        output_buffer
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
glebtv-ckeditor-4.2.1.5 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.2.1.4 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.2.1.3 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.2.1.2 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.2.1.1 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.2.1 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.7 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.6 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.5 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.4 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.3 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.2 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1.1 lib/ckeditor/helpers/view_helper.rb
glebtv-ckeditor-4.1.1 lib/ckeditor/helpers/view_helper.rb
ckeditor-4.0.4 lib/ckeditor/helpers/view_helper.rb
ckeditor-4.0.2 lib/ckeditor/helpers/view_helper.rb
ckeditor-4.0.1 lib/ckeditor/helpers/view_helper.rb
ckeditor-4.0.0 lib/ckeditor/helpers/view_helper.rb
ckeditor-4.0.0.rc2 lib/ckeditor/helpers/view_helper.rb
lafeber_ckeditor-3.7.3 lib/ckeditor/helpers/view_helper.rb