I am new to this and have some (pretty basic, I guess) questions about the integration of CE in my html/php page, but hey, arent the most stupid questions not the ones that are not asked? :-)
So, I have uploaded the CE files to my server, so far no problem.
Then I have a php/html page, with a textarea I want to have replaced by the Editor.
The content of the textarea will be stored/retrieved in/from a MySQL database.
I have copied the code of the form in which I have put the text area :
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Cont_omsch:</td>
<td><input type="text" name="cont_omsch" value="<?php echo htmlentities($row_Content['cont_omsch'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right" valign="top">Cont_text:</td>
<td><textarea name="cont_text" cols="50" rows="5"><?php echo htmlentities($row_Content['cont_text'], ENT_COMPAT, 'utf-8'); ?></textarea>
</td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Record bijwerken" /></td>
</tr>
</table>
<table border="0" align="center">
<tr>
<td><?php if ($pageNum_Content > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, 0, $queryString_Content); ?>">Eerst</a>
<?php } // Show if not first page ?>
</td>
<td><?php if ($pageNum_Content > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, max(0, $pageNum_Content - 1), $queryString_Content); ?>">Vorige</a>
<?php } // Show if not first page ?>
</td>
<td><?php if ($pageNum_Content < $totalPages_Content) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, min($totalPages_Content, $pageNum_Content + 1), $queryString_Content); ?>">Volgende</a>
<?php } // Show if not last page ?>
</td>
<td><div align="center">
<?php if ($pageNum_Content < $totalPages_Content) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Content=%d%s", $currentPage, $totalPages_Content, $queryString_Content); ?>">Laatste</a>
<?php } // Show if not last page ?>
</div></td>
</tr>
</table>
<input type="hidden" name="MM_update" value="form1" />
<input type="hidden" name="cont_id" value="<?php echo $row_Content['cont_id']; ?>" />
</p>
</form>
So here are my questions:
1) Where do I put php code in this form in order to replace the text area with the editor (so that I can edit the content of the corresponding field in my MySQL database?
2) What will be this php code?
3) Do I have to put php code elsewhere on my page and if so, what will be this code?
Any help will be greatly appreciated.
Erik