I solved the issue:

This was the the old script:

  tinyMCE.get('editor1').setContent('<h1>This is Ronen Site 1</h1>');

   . <script>
   .   function change(value)
   .   {
   .
   .     <% for layout in @layouts %>
   .
   .       if (value == "<%= layout.temp_id %>")
   .       {
   .         document.getElementById
("text_area_html_content").innerHTML = '<%= layout.body %>';
  .       }
  .
  .     <% end %>
  .
  .   }
  . </script>

I changed it to:

   . <script>
   .   function change(value)
   .   {
   .
   .     <% for layout in @layouts %>
   .
   .       if (value == "<%= layout.temp_id %>")
   .       {
 tinyMCE.get('text_area_html_content').setContent('<%= layout.body
%>');
  .       }
  .
  .     <% end %>
  .
  .   }
  . </script>

Hope it helps someone in the future,

Elioncho

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to