I'm trying to use TinyMCE (HTML Editor) within a PEAR application.
TinyMCE is supposed to take any text area and overlay it with a GUI Editor for those who don't know HTML.
Everything renders and funtions fine within Firefox, Opera & Safari, but not IE.
The editor simply doesn't show up within IE and I need to remedy that.
In fact, if I don't have this fixed my Monday 8AM, my job may be in jeopardy.
Here is the relevant code:
Code:
// HTML Editor
$editorInc = "<script language=\"javascript\" type=\"text/javascript\" src=\"tinymce/jscripts/tiny_mce/tiny_mce.js\"></script>\n";
$editorInc .= "<script language=\"javascript\" type=\"text/javascript\">\n";
$editorInc .= "tinyMCE.init({\n";
$editorInc .= "mode : \"textareas\",\n";
$editorInc .= "theme : \"advanced\",\n";
$editorInc .= "theme_advanced_buttons1 : \"bold,italic,underline,separator,justifyleft,justif ycenter,justifyright,justifyfull,bullist,numlist,s eparator,fontselect,fontsizeselect,forecolor\",\n";
$editorInc .= "theme_advanced_buttons2 : \"\",\n";
$editorInc .= "theme_advanced_buttons3 : \"\",\n";
$editorInc .= "theme_advanced_toolbar_location : \"top\",\n";
$editorInc .= "theme_advanced_toolbar_align : \"left\",\n";
//$editorInc .= "auto_reset_designmode : \"true\",\n";
$editorInc .= "visual : \"false\"\n";
$editorInc .= "});\n";
$editorInc .= "</script>\n";
$tpl->append('jsinc',$editorInc);
$editor = "<textarea rows=\"30\" cols=\"128\" name=\"proposalEdit\">".stripslashes(stripslashes($dbp->content))."</textarea>\n";
$table->addRow(array($editor));
Is there something I'm missing here?
If Tiny MCE will not work, Does anyone know if an HTML editor I can use in it's place.
Thanks in advance for any insight.