Sha256: ae216ab52c14d30e8194323e6598a473d4508845e15554768f63c4c7ba1fbb0d

Contents?: true

Size: 607 Bytes

Versions: 7

Compression:

Stored size: 607 Bytes

Contents

module AbAdmin
  module Views
    module Inputs
      class CkeditorInput < ::SimpleForm::Inputs::Base
        def input(wrapper_options=nil)
          unless @builder.template.instance_variable_get(:@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.8.3 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.8.2 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.8.1 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.8.0 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.7.0 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.6.1 lib/ab_admin/views/inputs/ckeditor_input.rb
ab_admin-0.6.0 lib/ab_admin/views/inputs/ckeditor_input.rb