Sha256: fcffd948864c525b20d883007e3bf89c5a69b4b91e05b32261204df8ed169665
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 Bytes
Contents
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) warn "[DEPRECATION] calling f.ckeditor(:#{attribute_name}, ...) is deprecated, call f.input(:#{attribute_name}, :as => :ckeditor, #{options.to_s[1..-1]}) #{Kernel.caller.first}" options[:as] = :ckeditor self.input(attribute_name, options, &block) end end
Version data entries
5 entries across 5 versions & 2 rubygems