Sha256: 2e1336ff9aca980beb1745ca0d68171184e6763afe38b2a46a7cb2033be4a3bf

Contents?: true

Size: 672 Bytes

Versions: 7

Compression:

Stored size: 672 Bytes

Contents

module AbAdmin
  module Views
    module Inputs
      class CkeditorInput < ::SimpleForm::Inputs::Base
        def input
          unless @builder.template.instance_variable_get(:@ckeditor_init)
            #concat template.javascript_include_tag("/assets/ckeditor/init")
            @builder.template.concat @builder.template.javascript_include_tag('/javascripts/ckeditor/init')
            @builder.template.instance_variable_set(:@ckeditor_init, true)
          end
          input_html_options.reverse_merge!({:width => 800, :height => 200, :toolbar => 'Easy'})
          @builder.cktext_area(attribute_name, input_html_options)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.2.2 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.2.1 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.2.0 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.1.2 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.1.1 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.1.0 lib/ab_admin/views/inputs/ckeditor_input.rb