Hey all,
I'm using the FCKEditor in my Rails app and everything works as it should except for ...
1] When putting a textarea into the fckEditor, saving it and going back to the page, everything after the textarea is posted below the FCKEditor as plain HTML code. So when I resave, everything after the (first) textarea is lost.
Anyone ever had this and knows how to fix it
2] Is there a way to automatically add the 'ID' field to the options when you add a form (input) field?
Thanks!
My code is a very simple view
<% eval_template ||= @eval_template || TraineeEvaluationTemplate.new() %>
<div class="error_msg"><%= flash[:notice] if flash[:notice] %></div>
<% form_for :eval_template, eval_template, :url => {:action => 'save_template', :controller => 'trainee_evaluation'} do |f| %>
<%= f.hidden_field :id %>
<div id="<%= fckeditor_div_id('eval_template', 'content') %>">
<%= fckeditor_textarea( "eval_template", "content", :toolbarSet => 'Simple', :width => '750', :height => '400') %>
</div>
<%= submit_tag "Opslaan" %>
<% end %>