# Tiny\_MCE\_Plus with ajax

**URL:** <https://www.ruby-forum.com/t/tiny-mce-plus-with-ajax/180962>\
**Category:** Rails\
**Created:** [January 2, 2010, 7:05am UTC](https://www.ruby-forum.com/t/tiny-mce-plus-with-ajax/180962 "2010-01-02T07:05:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krunal\_shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f07891/32.png) [@krunal\_shah](https://www.ruby-forum.com/u/krunal_shah)\
**Post date:** [January 2, 2010, 7:05am UTC](https://www.ruby-forum.com/t/tiny-mce-plus-with-ajax/180962/1 "2010-01-02T07:05:55Z")

</div>

I have used tiny\_mce\_plus plugin. I have set editor on partial file.  
And i am submitting form with ajax.

\<% form\_remote\_for(@message,:url =\> compose\_url(params[:login]),:method  
=\> :post) do |f| %\>  
\<%= f.text\_area(:description, :class =\> “mceEditor”, :rows =\> ‘8’,:cols  
=\> ‘20’,:ajax =\> true) %\>  
\<%= submit\_tag “Send Msg” , :id =\>  
submit\_mail",:onclick=\>“tinyMCE.triggerSave(true,true);” %\>  
\<% end %\>

This code is working fine on one action.

1. But i have called the same partial from the other action and at that  
time i am not getting editor value on action side.

2. I am calling the same partial file which contain this form tag. But  
editor is coming from two actions but it’s not coming for other action.

I have used same partial from the different actions but confused why  
it’s not working proper with every action.

Thanks
