【问题标题】:NicEdit data not in POSTNicEdit 数据不在 POST 中
【发布时间】:2012-09-18 16:18:51
【问题描述】:

我确定我在这里遗漏了一些非常简单的东西,我已经搜索过但似乎找不到答案。

有了这个简单的表格。如何从 NicEdit 框中获取内容到我的 HTTP POST。我得到的只是原始文本区域值,而不是编辑后的版本。

<!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>

【问题讨论】:

    标签: php html nicedit


    【解决方案1】:

    看看我是怎么解决的:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-15
      • 1970-01-01
      • 2011-07-19
      • 2016-08-01
      • 2011-01-02
      • 2023-03-09
      • 1970-01-01
      • 2023-04-08
      相关资源
      最近更新 更多