//implementation for front-end article post form 

tinyMCE.init ({
	
        theme : "advanced",
        mode : "exact",
		elements : "UsersArticleContent",
        skin : "o2k7",
    	skin_variant : "silver",
        convert_urls : false,
        
        plugins : "fullscreen",
        
    	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo",
    	theme_advanced_buttons2 : false,
		theme_advanced_buttons3 : false,
    	theme_advanced_toolbar_location : "top",
    	theme_advanced_toolbar_align : "left",
    	theme_advanced_statusbar_location : false,
    	theme_advanced_resizing : true,
    	
    	
        setup : function(ed) {
            ed.onKeyUp.add(function(ed, e) {   
                 var strip = (tinyMCE.activeEditor.getContent());
                 var text = strip.split(" ").length + " words, " +  strip.length + " characters"
                 tinymce.DOM.setHTML(tinymce.DOM.get('charCountCont'), text);   
            });
       }

});
