Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wysiwyg editor

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
Hi there,

I've implemented a wysiwyg editor into a Web site using php. It works OK besides the fact that when there is a longer text to be edited in the wysiwyg editor, it cuts off the content and displays only around 300 words. I have checked the settings of the editor but couldn't see the cause of this problem. Can anyone help?

Thanks

May
 
code?

___________________________________
[morse]--... ...--[/morse], Eric.
 
How is the text transferred back and forth?
There are limits on POST data size and of course much lower for GET.
Is the full text arriving in the client? or
Is the text fully trnasferred to the server?
 
Here is the code from the text editor which does the content replacement:

<form method="post" action="update.php?">
<input type="hidden" name="name" value="<?=$tname?>" />
<tr>
<td bgcolor="#3333cc"><font face="Arial" size="3" color="#ffffff"><strong>Edit text block</strong></font></td>
</tr>
<tr>
<td><textarea name="editor_text" rows="10" cols="60"></textarea><br />
<script language="javascript1.2">
document.all.editor_text.value = Base64Decode('\'' + window.dialogArguments + '\'');
editor_generate('editor_text', stdConfig());
</script></td>
</tr>
</form>
---------------------------
The code in the update.php is:

<?
require_once "inc/functions.php";

$name = $_POST['name'];
$content = $_POST['content'];
$page = $_POST['page'];

$filename = CONTENTDIR . '/' . $name . '.htm';
$fp = fopen($filename, 'wb');
fwrite($fp, stripslashes($content), strlen(stripslashes($content)));
fclose($fp);

?>
---------------------------------------
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top