Sha256: 3c31af47399a76b4338d4e0150a2ffa41b7973000bc060ccf5c0231c57928f41

Contents?: true

Size: 1.06 KB

Versions: 17

Compression:

Stored size: 1.06 KB

Contents

require 'rails_admin/config/fields/types/text'

module RailsAdmin
  module Config
    module Fields
      module Types
        class CKEditor < Text
          # Register field type for the type loader
          RailsAdmin::Config::Fields::Types.register(self)

          register_instance_option :version do
            '4.11.4'
          end

          # If you want to have a different toolbar configuration for CKEditor
          # create your own custom config.js and override this configuration
          register_instance_option :config_js do
            nil
          end

          # Use this if you want to point to a cloud instances of CKeditor
          register_instance_option :location do
            nil
          end

          # Use this if you want to point to a cloud instances of the base CKeditor
          register_instance_option :base_location do
            "https://cdnjs.cloudflare.com/ajax/libs/ckeditor/#{version}/"
          end

          register_instance_option :partial do
            :form_ck_editor
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_admin-2.3.1 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.3.0 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.rc4 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.rc3 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.rc2 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.rc lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.beta2 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-3.0.0.beta lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.2.1 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.2.0 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.1.1 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.1.0 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.0.2 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.0.1 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.0.0 lib/rails_admin/config/fields/types/ck_editor.rb
rails_admin-2.0.0.rc lib/rails_admin/config/fields/types/ck_editor.rb