Sha256: 24b19884cfaff3e9bd984e307a96a8f7126468dc90f9009b5125e473d99c3b9d

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

require 'ckeditor-rails/version'

module Ckeditor
  module Rails

    mattr_accessor :assets_languages
    @@assets_languages = nil

    mattr_accessor :assets_plugins
    @@assets_plugins = nil

    mattr_accessor :assets_skins
    @@assets_skins = nil

    class << self
      def configure
        yield self
      end

      def root_path
        @root_path ||= Pathname.new(File.expand_path('..', __FILE__))
      end

      def default_plugins
        %W[
          a11yhelp
          about
          clipboard
          colordialog
          dialog
          div
          find
          flash
          forms
          iframe
          image
          link
          liststyle
          pastefromword
          preview
          scayt
          smiley
          specialchar
          table
          tabletools
          templates
          wsc
        ]
      end

      def default_skins
        %w[moono]
      end
    end

  end
end

require 'ckeditor-rails/asset'

case ::Rails.version.to_s
when /^4/
  require 'ckeditor-rails/engine'
when /^3\.[12]/
  require 'ckeditor-rails/engine3'
when /^3\.[0]/
  require 'ckeditor-rails/railtie'
end if defined? ::Rails

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ckeditor_rails-4.5.3 lib/ckeditor-rails.rb
ckeditor_rails-4.5.2 lib/ckeditor-rails.rb
ckeditor_rails-4.5.1 lib/ckeditor-rails.rb
ckeditor_rails-4.4.8 lib/ckeditor-rails.rb