I recently download version 2.0 of this and it runs fine in a standard html page
However if I try to place some of the generation code in php
e.g.
echo "
<form>
<textarea name=\"bob\" style=\"width:590; height:150\">
<p>Here is some sample text: <b>bold</b>, <i>italic</i>, <u>underline</u>. </p>
<p align=center>Different fonts, sizes and colors (all in bold):</p>
<p><b>
<font face=\"arial\" size=7 color=\"#000066\">arial</font>,
<font face=\"courier new\" size=6 color=\"#006600\">courier new</font>,
<font face=\"georgia\" size=5 color=\"#006666\">georgia</font>,
<font face=\"tahoma\" size=4 color=\"#660000\">tahoma</font>,
<font face=\"times new roman\" size=3 color=\"#660066\">times new roman</font>,
<font face=\"verdana\" size=2 color=\"#666600\">verdana</font>,
<font face=\"tahoma\" size=1 color=\"#666666\">tahoma</font>
</b></p>
</textarea>
<script language=\"javascript1.2\">
editor_generate('bob');
</script>
</form>
";
It gives me a javascript error on line 248 of the editor.js file - I have had a look at linke 248 and all that says is
document.all[objname].insertAdjacentHTML('afterEnd', editor)
which makes no sense to me.
Has anyone ever come across this problem before or even know of a resolution I can attempt?