anchor.diff:  (function($) {
   
  -<%- case @content.essence_type -%>
  -
  -<%- when "EssencePicture" -%>
  +<%- if @content.essence_type == "EssencePicture" -%>
   
     $('#add_content_<%= @element.id -%>').before('<%= escape_javascript(
       render(
  
positive.code:     )
    ) -%>');
    Alchemy.closeCurrentWindow();
    <%- end -%>
    TinymceHammer.addEditor('contents_content_<%= @content.id -%>_body');
  
  <%- else -%>
  
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",
  