Forum Moderators: coopster
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
I've been struggling a bit with HTMLArea myself.
Tom
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
May
<textarea name="editor_text" rows="10" cols="60"></textarea>
The problem is, that's not the actual code. When you run htmlArea, it will only use this code if the browser does not support htmlArea. It the browser DOES work with HA, it will replace this client side and you can't see the actual form that is in use.
As far as I know, though, HA should not have a built-in limit. They have a pretty good forum just for htmlArea questions. You might try over there.
Tom