I threw the FCKeditor into a php for loop and for some reason is displays the word "object" above the editor. Any ideas? Thanks in advance.
<? for ($i = 1; $i <= $Topics; $i++) {
echo "<tr>
<th>Headline $i</th>
<td><input name=\"Headline$i\" type=\"text\" size=\"50\"";
if ($HeadlineErr) {echo "class=\"formElementsErr\"";} else {echo "class=\"formElements\"";}
echo "></td>
</tr>
<tr>
<th>Content $i</th>
<td>" .
$oFCKeditor = new FCKeditor("Content$i") ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Value = "$Description" ;
$oFCKeditor->ToolbarSet = 'Basic' ;
$oFCKeditor->Create();
" </td>
</tr>";
}
?>
Re: FCKeditor displays the word "object"
<? for ($i = 1; $i <= $Topics; $i++) { echo "<tr> <th>Headline $i</th> <td><input name=\"Headline$i\" type=\"text\" size=\"50\""; if ($HeadlineErr) {echo "class=\"formElementsErr\"";} else {echo "class=\"formElements\"";} echo "></td> </tr> <tr> <th>Content $i</th> <td>" ; $oFCKeditor = new FCKeditor("Content$i") ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = "$Description" ; $oFCKeditor->ToolbarSet = 'Basic' ; $oFCKeditor->Create(); echo " </td> </tr>"; } ?>Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn