Sha256: f5a11b49064f24d0e91511f900c018b7eb574af37fb555b39a22a1eaf654dc9a

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

module Tinymce4
  module Rails
    class Engine < ::Rails::Engine
      initializer "init Tinymce4 config" do
        Tinymce4.configure do |c|
          c.selector = 'textarea'
          c.theme = 'modern'
        end
      end

      config.after_initialize do
        Tinymce4.config.language ||= I18n.default_locale
      end

      initializer "load helpers" do |app|
        ActiveSupport.on_load(:action_view) do
          include Tinymce4::Rails::Helper
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tinymce4-rails-4.0.1 lib/tinymce4/rails/engine.rb