Sha256: 835926148d72a70680cb5b1086092c71bc394e064ee596a26ae71e2e1b8024fc

Contents?: true

Size: 699 Bytes

Versions: 25

Compression:

Stored size: 699 Bytes

Contents

module Ckeditor
  module FormBuilder
    def self.included(base)
      base.send(:include, Ckeditor::ViewHelper)
      base.send(:include, Ckeditor::FormBuilder::ClassMethods)
    end
    
    module ClassMethods
      # Example:
		  # <% form_for :post, :url => posts_path do |form| %>
		  #   ...
		  #   <%= form.cktext_area :notes, :toolbar=>'Full', :width=>'400px', :heigth=>'200px' %>
		  # <% end %>
		  #
		  # With swfupload options:
		  # <%= form.cktext_area :content, :swf_params=>{:assetable_type=>'User', :assetable_id=>current_user.id} %>
		  def cktext_area(method, options = {})
      	ckeditor_textarea(@object_name, method, objectify_options(options))
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 5 rubygems

Version Path
ckeditor-3.4.0.pre lib/ckeditor/form_builder.rb
ckeditor-3.3.2 lib/ckeditor/form_builder.rb
ckeditor-3.2.4 lib/ckeditor/form_builder.rb
ckeditor-3.2.3 lib/ckeditor/form_builder.rb
ckeditor-3.2.1 lib/ckeditor/form_builder.rb