$(function() {
          if ($('.wymeditor')) {
                    $('.wymeditor').each(function(index) {
                        
                        var CurrId = $(this).attr('id');
                        CKEDITOR.replace(CurrId, ckConfig);                        
                        
                    });
          }          
          if ($('.wymeditorDiscussion')) {
                    $('.wymeditorDiscussion').each(function(index) {
                        
                        var CurrId = $(this).attr('id');
                        CKEDITOR.replace(CurrId, ckConfigDiscussion);                        
                        
                    });                    
                    
          }    
});

