var charlimit = 1000; tinyMCE.init({ mode : "textareas", remove_script_host : false, convert_urls : false, editor_deselector : "mceNoEditor", width : "400", height : "200", theme : "advanced", plugins : "imagemanager,safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,video,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager", setup : function(ed) { ed.onKeyUp.add(function(ed, e) { var strip = (tinyMCE.activeEditor.getContent()).replace(/(<([^>]+)>)/ig,""); var text = strip.split(' ').length + " Words, " + strip.length + " Characters :: " tinymce.DOM.setHTML(tinymce.DOM.get(tinyMCE.activeEditor.id + '_path_row'), text); }); }, extended_valid_elements : "iframe[src|width|height|name|align]", theme_advanced_buttons1 : "save,code,preview,print,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,removeformat,|,charmap,emotions,iespell,advhr,|,fullscreen,|,styleprops,spellchecker,template", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, content_css : "/css/css.php?myParam=myValue&bogus=" + new Date().getTime(), template_external_list_url : "js/template_list.js", external_link_list_url : "js/link_list.js", external_image_list_url : "js/image_list.js", media_external_list_url : "js/media_list.js", template_replace_values : { }, template_templates : [ ], });