RE: [PEAR] PEAR HTML & TinyMCE - IE Issues
| From: | Sherwin M. Harris | Date: | Wed, 12 Dec 2007 00:14:33 +0000 |
| Subject: | RE: [PEAR] PEAR HTML & TinyMCE - IE Issues | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28315@lists.php.net to get a copy of this message | ||
It looks like you are using Smarty templates also. You could try FCKEditor, which is also a nice GUI
text area replacement. If you are using Smarty and want to try FCKEditor here are a couple helpful
links.
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=7861
http://wiki.fckeditor.net/Developer%27s_Guide/Integration/PHP/Smarty
You could also consider putting your large amount of data for the $editorInc variable in heredoc
format. http://us.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Best of luck!
Sherwin Harris
-----Original Message-----
From: trickyidiot [mailto:mcgroovin@gmail.com]
Sent: Sunday, December 09, 2007 7:44 AM
To: pear-general@lists.php.net
Subject: [PEAR] PEAR HTML & TinyMCE - IE Issues
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,justifycenter,justifyright,justifyfull,bullist,numlist,separator,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));[/code]
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.
--
View this message in context: http://www.nabble.com/PEAR-HTML---TinyMCE---IE-Issues-tp14239158p14239158.html
Sent from the Pear - General mailing list archive at Nabble.com.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php