Jump to content

using FCKEDITOR


pcman

Recommended Posts

i use FCKEDITOR in this way:

$Page_Body = "
<form action=\"?action=Admin&admin_action=Add_Page\" method=\"post\">
<input type=\"text\" name=\"Title\" />
".
include_once("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('Body');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create()
."
<br>
<input type=\"submit\" value=\"Submit\" name=\"Send\">
</form>
";

but the FCKEDITOR input field be created in the head of the page (the html source code):

<!--- ### the FCKEDITOR html code is here =[ ----->

<div><input type="hidden" id="Body" name="Body" value="" style="display:none" /><input type="hidden" id="Body___Config" value="" style="display:none" /><iframe id="Body___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=Body&Toolbar=Default" width="100%" height="200" frameborder="0" scrolling="no"></iframe></div>

<html>
<head>
<title>Omer - </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table style="width:760px;">
	<tr>
		<td>
						</td>
	</tr>

	<tr>
		<td>

<form action="?action=Admin&admin_action=Add_Page" method="post">
<input type="text" name="Title" />
1			</td>
	</tr>
</table>
</body>
</html>

 

i want hem in the form...

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/91537-using-fckeditor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.