Sha256: 40a0f1d63cb6c101876606047b81a1e976812fbe97e84c2e9f213f506a40a025

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application_controller'

class CkEditorFilterExtension < Radiant::Extension
  version "0.2.1"
  description "Adds CKEditor as a filter"
  url "https://github.com/jomz/radiant-ck_editor_filter-extension"
  
  # define_routes do |map|
  #   map.namespace :admin, :member => { :remove => :get } do |admin|
  #     admin.resources :ck_editor_filter
  #   end
  # end
  
  def activate
    CkEditorFilter
    Admin::PagesController.send :include, CkeditorInterface
    admin.page.edit.add :part_controls, "editor_control"
  end
  
  def deactivate
    # admin.tabs.remove "Ck Editor Filter"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-ck_editor_filter-extension-0.2.1 ck_editor_filter_extension.rb