Permalink
Browse files

Use id and name given by AS for ckeditor_textearea helper

  • Loading branch information...
atalargo committed Jul 31, 2010
1 parent 2c486c6 commit aaadb765539c123e897af5c479646d810c18b6c6
Showing with 3 additions and 2 deletions.
  1. +2 −0 README
  2. +1 −2 lib/bridges/ckeditor/lib/ckeditor_bridge.rb
View
2 README
@@ -12,6 +12,8 @@ h3. Installing:
You must have ActiveScaffold and Rails-ckeditor plugin installed and configured
+(you must use this fork of rails-ckeditor : http://github.com/atalargo/rails-ckeditor to have the possibility to have many editor opened of different instance of same model at the same time -like in subform editors of association)
+
* ./script/plugin install git://github.com/atalargo/active_scaffold_ckeditor.git
@@ -33,14 +33,13 @@ def self.included(base)
end
def active_scaffold_input_ckeditor(column, options)
-
options[:width] ||= (column.options[:width] ||= "600px")
options[:height] ||= (column.options[:height] ||= "200px")
options[:language] ||= (column.options[:language] ||= I18n.locale.to_s)
options[:class] = "#{options[:class]} CKEditor #{column.options[:class]}".strip
options[:resize_enabled] ||= (column.options[:resize_enabled] ||= true)
options[:ajax] ||= (column.options[:ajax] ||= true)
- ckeditor_textarea( :record, column.name, :width => options[:width], :height => options[:height], :language => options[:language], :class => options[:class], :resize_enabled => options[:resize_enabled], :ajax => options[:ajax])
+ ckeditor_textarea( :record, column.name, :id => options[:id], :name => options[:name], :width => options[:width], :height => options[:height], :language => options[:language], :class => options[:class], :resize_enabled => options[:resize_enabled], :ajax => options[:ajax])
end
def onsubmit_with_ckeditor

0 comments on commit aaadb76

Please sign in to comment.