1 2
|
<script type="text/javascript" src="<your installation path>/tiny_mce/tiny_mce.js"></script> 02.<script type="text/javascript"> 03.tinyMCE.init({ 04.// General options 05.mode : "textareas", 06.theme : "advanced", 07.plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", 08. 09.// Theme options 10.theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", 11.theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", 12.theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", 13.theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", 14.theme_advanced_toolbar_location : "top", 15.theme_advanced_toolbar_align : "left", 16.theme_advanced_statusbar_location : "bottom", 17.theme_advanced_resizing : true, 18. 19.// Example content CSS (should be your site CSS) 20.content_css : "css/example.css", 21. 22.// Drop lists for link/image/media/template dialogs 23.template_external_list_url : "js/template_list.js", 24.external_link_list_url : "js/link_list.js", 25.external_image_list_url : "js/image_list.js", 26.media_external_list_url : "js/media_list.js", 27. 28.// Replace values for the template plugin 29.template_replace_values : { 30.username : "Some User", 31.staffid : "991234" 32.} 33.}); 34.</script> 35. 36.<form method="post" action="somepage"> 37.<textarea name="content" style="width:100%"> 38.</textarea> 39.</form> |
Partager