I'm trying to use a tinyMCE text editor of community engine in my
Rails app and am having
some problems. I'm trying to load a tinyMCE-enabled form dynamically
as the result of an Ajax call, i.e. I want to insert the form into a
page via Ajax.Without ajax it is working fine but with ajax my
textarea changes into simple textarea. In my controller i am using
controller:
uses_tiny_mce do
AppConfig.default_mce_options.merge({:editor_selector =>
"rich_text_editor"})
end
My form is:
-form_remote_tag(:html => {:id => 'comment_id' },:loading => " $
('comment_spinner').show();", :onsubmit=>"tinyMCE.triggerSave(true,true);" ,:url
=>{:controller => 'products',:method =>'post', :action =>
'comment_product'})do
%em=:comment_character_limit.l
= text_area_tag :comment,'', {:size => "30x1", :class =>
"rich_text_editor fl"}
= submit_tag "Add Comment",:class=>'btnSty fl btnLeft'
= image_tag('../images/spinner.gif',:style =>
'display:none;', :id => 'comment_spinner')
= hidden_field_tag (:product_id ,@product.id)
Any help will be appriciated.
Regards
Preeti
--
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en.