Guest Brivtech Posted November 30, 2007 Share Posted November 30, 2007 I'm trying to run 2 instances of FCK editor on an admin form page. ... but I'm getting a "Fatal error: Cannot redeclare class fckeditor". Does anyone know a simple workaround? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2007 Share Posted November 30, 2007 I'm trying to run 2 instances of FCK editor on an admin form page. ... but I'm getting a "Fatal error: Cannot redeclare class fckeditor". Does anyone know a simple workaround? you dont need to include the fck class more than once you can do it this way: require($glob['adminFolder']."/includes".CC_DS."rte".CC_DS."fckeditor.php"); $oFCKeditor = new FCKeditor('textarea1'); $oFCKeditor->Create(); ... $oFCKeditor = new FCKeditor('textarea2'); $oFCKeditor->Create(); the editors created will be called textarea1 and textarea2 respectively Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted November 30, 2007 Share Posted November 30, 2007 It was staring me in the face all the time! It works! The man is a genius I tells ya! Cheers Martin, greatly appreciated bit of help there. :wub: Quote Link to comment Share on other sites More sharing options...
Guest Posted December 3, 2007 Share Posted December 3, 2007 I have a friend with 4 FCK instances on one page. A bit of overkill to me, but it does work. :sourcerer: Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted January 17, 2008 Share Posted January 17, 2008 Following up from this, I got the editor to work just fine. However, when I display the data generated by the FCK editor back into the webpage, it's showing the HTML code as well, text code (like it's putting in <br />'s instead if making an actual linespace). What could I be doing wrong? Is the mySQLSafe doing this? i.e. $check = $db->select("SELECT extraBox FROM ".$glob['dbprefix']."CubeCart_docs WHERE doc_id = ".$db->mySQLSafe($_GET['docId'])); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.