I've added the following lines of code in submit_step2.php just after line 73 but TinyMCE editor just fails to show up in submit step 2, just wondering where I'm going wrong.
Line 73 of submit_step2.php
The code I have added:Code:<?php if ($hotaru->post->useContent) { ?>
Code:<script language="javascript" type="text/javascript" src="<my tiny_mce js path>/tiny_mce.js"></script> <!-- change src according to your needs --> <script language="javascript" type="text/javascript"> tinyMCE.init({ theme : "advanced", mode: "exact", elements : "elm1", theme_advanced_toolbar_location : "top", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator," + "justifyleft,justifycenter,justifyright,justifyfull,formatselect," + "bullist,numlist,outdent,indent", theme_advanced_buttons2 : "link,unlink,anchor,image,separator," +"undo,redo,cleanup,code,separator,sub,sup,charmap", theme_advanced_buttons3 : "", height:"350px", width:"600px", file_browser_callback : 'myFileBrowser' }); function myFileBrowser (field_name, url, type, win) { var fileBrowserWindow = new Array(); fileBrowserWindow['title'] = 'File Browser'; fileBrowserWindow['file'] = "my_cms_script.php" + "?type=" + type; fileBrowserWindow['width'] = '420'; fileBrowserWindow['height'] = '400'; tinyMCE.openWindow(fileBrowserWindow, { window : win, resizable : 'yes', inline : 'yes' }); return false; } </script>



Reply With Quote


Bookmarks