i have a script that open files in a text area for editing i droped TinyMCE into the page

and for some reason the files are not beeing readnow

my new code
Code:
<?php

/*
AjaxExplorer Copyright (C) 2007-2008 Syed Mohammad Sidque Tahir Al-Habshi

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Head to
GNU site http://www.gnu.org/licenses/ for license copy.
*/

$main=1;
$access='0002';
include 'script/core.php';

?>
<html>
  <head>

    <title>TinyMCE Editor - AjaxExplorer</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="SMSID Software" />
    <meta name="keywords" content="ajax,explorer,file,manager" />
    <meta name="description" content="Ajax File Manager - AjaxExplorer" />

    <link rel="SHORTCUT ICON" href="images/file.gif" />
    <link rel="STYLESHEET" href="script/style.css" type="text/css" />

    <script src="script/ajax.js" type="text/javascript"></script>
    <script src="script/core.js" type="text/javascript"></script>
    <script src="script/text.js" type="text/javascript"></script>
    <script type="text/javascript" src="./mce/tiny_mce/tiny_mce.js"></script>
    
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,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",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,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,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>
  </head>
  <body onLoad="textLoad()">

    <div id="head">
      <div class="span">
	<div id="head-menu">
	  <img alt="" src="images/file.gif" title="Open File" onClick="textOpenFile()" /> &nbsp; <img alt="" src="images/save.png" title="Save File" onClick="textSave()" /> &nbsp; <img alt="" src="images/view.gif" title="View File" onClick="window.open('/../'+html)" /> &nbsp; <img alt="" src="images/div.gif" /> &nbsp; <img alt="" src="images/help.gif" title="User Manual" onClick="window.open('readme.htm')" /> &nbsp; <span id="detail"></span></div>
        </div>

        <div>
	  &nbsp; <span id="filename"></span>
        </div>
      </div>
    </div>

    <div class="down"></div>
    <textarea id="code" wrap="off" onBlur="over=0" onFocus="over=1" onKeyPress="save=0">loading...</textarea>
    <div id="canvas"></div>
  </body>
</html>
And this is my old code
Code:
<?php

/*
AjaxExplorer Copyright (C) 2007-2008 Syed Mohammad Sidque Tahir Al-Habshi

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Head to
GNU site http://www.gnu.org/licenses/ for license copy.
*/

$main=1;
$access='0002';
include 'script/core.php';

?>
<html>
  <head>

    <title>Text Editor - AjaxExplorer</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="author" content="SMSID Software" />
    <meta name="keywords" content="ajax,explorer,file,manager" />
    <meta name="description" content="Ajax File Manager - AjaxExplorer" />

    <link rel="SHORTCUT ICON" href="images/file.gif" />
    <link rel="STYLESHEET" href="script/style.css" type="text/css" />

    <script src="script/ajax.js" type="text/javascript"></script>
    <script src="script/core.js" type="text/javascript"></script>
    <script src="script/text.js" type="text/javascript"></script>

  </head>
  <body onLoad="textLoad()">

    <div id="head">
      <div class="span">
	<div id="head-menu">
	  <img alt="" src="images/file.gif" title="Open File" onClick="textOpenFile()" /> &nbsp; <img alt="" src="images/save.png" title="Save File" onClick="textSave()" /> &nbsp; <img alt="" src="images/view.gif" title="View File" onClick="window.open('/../'+html)" /> &nbsp; <img alt="" src="images/div.gif" /> &nbsp; <img alt="" src="images/help.gif" title="User Manual" onClick="window.open('readme.htm')" /> &nbsp; <span id="detail"></span></div>
        </div>

        <div>
	  &nbsp; <span id="filename"></span>
        </div>
      </div>
    </div>

    <div class="down"></div>
    <textarea id="code" wrap="off" onBlur="over=0" onFocus="over=1" onKeyPress="save=0">loading...</textarea>

    <div id="canvas"></div>

  </body>
</html>
but for some reason the editor box wont load the new code it just sticks at loading...
any help

once this is done it will be realced as open src