Forum Moderators: coopster
<body>
<form name="RTEDemo" method="get">
<script language="JavaScript" type="text/javascript">
<!--
function submitForm() {
updateRTEs();
return true;
document.writeln('document.RTEDemo.rte1');
}
//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("images/", "", "");
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
//Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
writeRichText('rte1', '', 520, 200, true, false);
//-->
</script>
<p>
<input type="submit" name="submit" ></p>
</form>
</body>
</html>
/////////////////////////////////////////////////
any ideas?
thank you .
Hi,
Thank you scriptmasterdel.
I used FCKeditor it is cool .
I have simple question why when I click on the submit button it opens page.php in a new window?
I don't want that . I want page.php to open instade of the editor page .
Do you know how to do that?
this is the code :
/***********************************************************
<form action="page.php" method="post" target="_blank">
<?php
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// $oFCKeditor->BasePath = '/FCKeditor/' ;// '/FCKeditor/' is the default value.
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_s" ) ) ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
if ( isset($_GET['Skin']) )
$oFCKeditor->Config['SkinPath'] = $sBasePath . 'editor/skins/' . $_GET['Skin'] . '/' ;
$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?>
<br><center>
<input type="submit" >
</center></form>
/**********************************************************