Sha256: f63cc9c481a45ec5035287f3e9a5c7bb63ac61b675ff85351f884ceb05c016a4

Contents?: true

Size: 663 Bytes

Versions: 6

Compression:

Stored size: 663 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

6 entries across 6 versions & 1 rubygems

Version Path
ab_admin-0.3.5 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.3.4 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.3.3 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.3.2 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.3.1 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.3.0 lib/ab_admin/views/inputs/ckeditor_input.rb