$(function() {

  var options = { language : 'en', skin : 'kama', height : '300', baseHref : '/', basePath : '/mods/ckeditor/' }

  $(document).bind('csAjaxLoad', function(e,ele) { 

    $(ele).find('textarea.rte_html').each(function() {
      var instance = CKEDITOR.instances[this.id];
      if(instance) {
          CKEDITOR.remove(instance);
      } 
    }).ckeditor(function(){}, options); 

  });

  $( 'textarea.rte_html' ).ckeditor(function(){}, options);

});
