dansgalaxy Posted March 8, 2009 Share Posted March 8, 2009 Hey im devin a addon for whmcs, just wondered what the easiest way to use the wysiwyg textarea editor so dont have to have a redundant copy just for this... cheers Dan 0 Quote Link to comment Share on other sites More sharing options...
yrochon Posted June 17, 2011 Share Posted June 17, 2011 Hey im devin a addon for whmcs, just wondered what the easiest way to use the wysiwyg textarea editor so dont have to have a redundant copy just for this... cheers Dan About two years later... I'm trying to to the same thing. Isn't there an answer to this? 0 Quote Link to comment Share on other sites More sharing options...
dansgalaxy Posted June 17, 2011 Author Share Posted June 17, 2011 All I've done to achieve this is add this code: <script language="javascript" type="text/javascript" src="editor/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", entity_encoding: "raw", convert_urls : false, relative_urls : false, plugins : "style,table,advlink,inlinepopups,media,searchreplace,contextmenu,paste,directionality,visualchars,xhtmlxtras", theme_advanced_buttons1 : "cut,copy,paste,pastetext,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,|,search,replace", theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,cleanup,code,help", theme_advanced_buttons3 : "", // tablecontrols theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); function toggleEditor(id) { if (!tinyMCE.get(id)) tinyMCE.execCommand(\'mceAddControl\', false, id); else tinyMCE.execCommand(\'mceRemoveControl\', false, id); } </script>' 0 Quote Link to comment Share on other sites More sharing options...
yrochon Posted June 17, 2011 Share Posted June 17, 2011 All I've done to achieve this is add this code: <script language="javascript" type="text/javascript" src="editor/tiny_mce.js"> *snip* ah! yes! silly me. I was looking everywhere, except "/admin". Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.