-->

NicEdit数据未在POST(NicEdit data not in POST)

2019-09-22 13:36发布

我敢肯定,我在想念很简单的东西在这里,我已搜查,并不能似乎找到答案。

有了这个简单的形式。 我怎样才能从NicEdit箱子到我的HTTP POST的内容。 我得到的是原始textarea的值不是编辑verison。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<h2>Test Page</h2>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
<table class="form">
<form action="test.php" enctype="multipart/form-data" method="POST">
<tr> 
    <td><textarea rows="10" cols="100" name="3">A long time ago in a galaxy far, far away...</textarea></td>
</tr>
<tr>
    <td align="center" style="padding-bottom: 10px;"><input type="submit" onclick="window.scrollTo(0,0)" name="update" value="Save Changes"></td>
</tr>
</form>
</table>
<?
print_r($_REQUEST); 
?>
</body>
</html>

Answer 1:

看我如何解决这个问题:

<textarea id="area1" name="content"></textarea>
<INPUT type=submit name="submit" value="Send" onclick="nicEditors.findEditor('area1').saveContent();">


文章来源: NicEdit data not in POST
标签: php html nicedit