Sha256: 68cd3717117dc98243e84618968af78fc57c7045236c6f2e5ab548452e1db98d

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require 'browsercms'
module BcmsFckeditor
  class Engine < Rails::Engine
    include Cms::Module
    
    js_files = config.action_view.javascript_expansions[:bcms_core]
    if js_files.include?(Cms.wysiwig_js)
      js_files.delete(Cms.wysiwig_js)
      js_files << '/bcms/fckeditor/fckeditor.js'
      js_files << '/bcms/fckeditor/editor.js'
    end
        
    initializer "bcms_fckeditor", :after=>'disable_dependency_loading' do 
      require 'bcms_fckeditor/section_controller_extensions'      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcms_fckeditor-1.1.0 lib/bcms_fckeditor/engine.rb