anchor.diff:    ) -%>');
     Alchemy.reloadPreview();
     Alchemy.closeCurrentWindow();
  +
     <%- end -%>
   
  -<%- when "EssenceRichtext" -%>
  +<%- 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",
  
positive.code:   Alchemy.reloadPreview();
    Alchemy.closeCurrentWindow();
    
  <%- when "EssenceText" -%>
  
    <%- locals = {
      :content => @content,
      :options => {:as => 'text_field'}.merge(@options.nil? ? {} : @options)
    } -%>
    <%- if params[:was_missing] -%>
    $("#element_<%= @element.id -%>_content_missing").replaceWith('<%= escape_javascript(
      render(
        :partial => "essences/essence_text_editor",
        :locals => locals
      )
    ) -%>');
    <%- else -%>
    $("#add_content_for_element_<%= @element.id -%>").before('<%= escape_javascript(
      render(
        :partial => "essences/essence_text_editor",
  
negative.code: (function($) {
  
  <%- if @content.essence_type == "EssencePicture" -%>
  
    $('#add_content_<%= @element.id -%>').before('<%= escape_javascript(
      render(
  