anchor.diff:      )
     ) -%>');
     Alchemy.closeCurrentWindow();
  +
     <%- end -%>
  +
     TinymceHammer.addEditor('contents_content_<%= @content.id -%>_body');
   
   <%- else -%>
  
positive.code: (function($) {
  
  <%- case @content.essence_type -%>
  
  <%- when "EssencePicture" -%>
  
    $('#add_content_<%= @element.id -%>').before('<%= escape_javascript(
      render(
  
negative.code:   ) -%>');
    Alchemy.reloadPreview();
    Alchemy.closeCurrentWindow();
  
    <%- end -%>
  
  <%- elsif @content.essence_type ==  "EssenceRichtext" -%>
  
    <%- locals = {
      :content => @content,
      :options => (@options.nil? ? {} : @options)
    } -%>
  
    <%- if params[:was_missing] -%>
  
    $("#element_<%= @element.id -%>_content_missing").replaceWith('<%= escape_javascript(
      render(
        :partial => "essences/essence_richtext_editor",
        :locals => locals
      )
    ) -%>');
  
    <%- else -%>
  
    $("#add_content_for_element_<%= @element.id -%>").before('<%= escape_javascript(
      render(
        :partial => "essences/essence_richtext_editor",
  