Hi all,
I'm working with the fckeditor for the first time and I'm having an issue getting the iframe for the editor to display. Right away I was receiving 404 messages, until I changed the basepath. Now nothing is being displayed...when I view the source it looks like everything should be working. Here is the source:
<form action="posted_data.php" method="post" target="_blank"> <input type="hidden" id="FCKeditor1" name="FCKeditor1" value="<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>" style="display:none" /><input type="hidden" id="FCKeditor1___Config" value="" style="display:none" /><iframe id="FCKeditor1___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default" width="800" height="200" frameborder="1" scrolling="no"></iframe> <br> <input type="submit" name="submit" value="Submit">
I saved the fckeditor directory to my root too, here is what's in the root:
fckeditor (directory)
index.php
posted_data.php
I'm kind of a php rookie, so I have a feeling I'm missing something small. Should my basebath be "/fckeditor/" instead?
Here is my index.php code:
<?php include_once("fckeditor/fckeditor.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Simple Wysiwyg-Cms</title> <style type="text/css" media="screen"> h1 { font-family: Georgia, "Times New Roman", Times, serif; color: #444; } </style> </head> <h1>Simple CMS Content Editor</h1> <a href="fckeditor/_samples/php/sample01.php">sample 1 test</a> <form action="posted_data.php" method="post" target="_blank"> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; ?> <br> <input type="submit" name="submit" value="Submit"> </form> <body> </body> </html>
I noticed that the default basebath in other files (like fckeditor.js) was "/fckeditor/", so I changed these to "fckeditor/". Is there something else I need to adjust/configure?
It might also be a javascript issue too, because the border around the fckeditor iframe shows up for a second when the page is loaded, but disapears after a second.
I'm really stuck on this one...please help! I would really appreciate any help/ideas