<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %>
<% remote_form_for(@product,
                   :loading => "small_loading('product-description-form')",
                   :update => 'product-description',
                   :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'description'},
                   :html => {:id => 'product-description-form', :method => 'post'}) do |f| %>

  <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;', :class => 'mceEditor')) %>
  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= cancel_edit_product_link(@product, 'description') %>
  <% end %>

<% end %>

<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %>
<% remote_form_for(@product,
                   :loading => "small_loading('product-description-form')",
                   :before => ("tinymce.editors[0].save()" unless Rails.env == 'test'),
                   :update => 'product-description',
                   :url => {:controller => 'manage_products', :action => 'edit', :id => @product, :field => 'description'},
                   :html => {:id => 'product-description-form', :method => 'post'}) do |f| %>

  <%= labelled_form_field(_('Description:'), f.text_area(:description, :rows => 15, :style => 'width: 90%;', :class => 'mceEditor')) %>
  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= cancel_edit_product_link(@product, 'description') %>
  <% end %>

<% end %>

Save to tinymce on ajax form
Save to tinymce on ajax form
