lib/ckeditor/hooks/simple_form.rb in ckeditor-3.7.3 vs lib/ckeditor/hooks/simple_form.rb in ckeditor-4.0.0.rc1

- old
+ new

@@ -1,11 +1,14 @@ +require 'simple_form' + module Ckeditor::Hooks::SimpleForm class CkeditorInput < ::SimpleForm::Inputs::Base def input @builder.cktext_area(attribute_name, input_html_options) end end end + ::SimpleForm::FormBuilder.map_type :ckeditor, :to => Ckeditor::Hooks::SimpleForm::CkeditorInput # TODO: remove this after a while, SimpleForm::FormBuilder#ckeditor is deprecated. class SimpleForm::FormBuilder def ckeditor(attribute_name, options={}, &block)