socialforge/plugins/redmine_ckeditor/init.rb

21 lines
586 B
Ruby
Raw Normal View History

2014-11-13 10:18:07 +08:00
require 'redmine'
require 'redmine_ckeditor'
Rails.application.config.to_prepare do
RedmineCkeditor.apply_patch
end
Redmine::Plugin.register :redmine_ckeditor do
name 'Redmine CKEditor plugin'
author 'Akihiro Ono'
description 'This is a CKEditor plugin for Redmine'
version '1.0.16'
requires_redmine :version_or_higher => '2.3.0'
url 'http://github.com/a-ono/redmine_ckeditor'
settings(:partial => 'settings/ckeditor')
wiki_format_provider 'CKEditor', RedmineCkeditor::WikiFormatting::Formatter,
RedmineCkeditor::WikiFormatting::Helper
end