anchor.diff:       var resource_type = "writing";//$("#AddWriting .accordion-body.collapse.in").attr('id');
   
        //XXX nuevo
  -     var plaintext = CKEDITOR.instances.new_file_only_writing_plaintext.document.getBody().getText();
  -     var fulltext = CKEDITOR.instances.new_file_only_writing_plaintext.getData();
  +     var plaintext = CKEDITOR.instances.new_file_only_writing_fulltext.document.getBody().getText();
  +     var fulltext = CKEDITOR.instances.new_file_only_writing_fulltext.getData();
   
        $("#new_file_only_writing_plaintext").val(plaintext);
        $("#new_file_only_writing_fulltext").val(fulltext);
  
positive.code:       alert("<%= t('document.body.title3')%>");
      } else if (resource_type == "link" && $("#AddWriting input[name='"+resource_type+"[url]']").val() == ""){
        alert("<%= t('link.title3')%>");
      } else if (resource_type == "embed" && $("#AddWriting input[name='"+resource_type+"[plaintext]']").val() == "") {
        alert("<%= t('embed.title3')%>");
      } else if (resource_type == "writing" && $("#AddWriting textarea[name='"+resource_type+"[plaintext]']").val() == "") {
        alert("<%= t('writing.title3')%>");
      } else if($("#AddWriting .title").val() == "") {
        alert("<%= t('document.title_alert')%>");
  
negative.code:     config.skin = 'vEditor,' + CKEDITOR.basePath + '/skins/vEditor/';
      
      //Add ckeditor wysiwyg instance
      var ckeditor = CKEDITOR.replace("new_file_only_writing_fulltext", config);
  
  
    });
  