你好ueditor编辑器用div你是怎么获取到值的呢?
展开全部
<script type="text/javascript" src="ueditor/editor_config.js"></script>
<script type="text/javascript" src="ueditor/editor_all.js"></script>
<link rel="stylesheet" href="ueditor/themes/default/ueditor.css"/>
<form id="form1" name="form1" method="post" action="test.php">
<div id="myEditor"></div>
<!-- <script type="text/plain" id="myEditor" name="content"></script>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor();
editor.render("myEditor");
</script>-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<input name="action" type="text" value="add">
<tr>
<td><script type="text/plain" id="myEditor" name="content"> </script>
<script language="javascript">
var editor = new baidu.editor.ui.Editor({ textarea:'content'});
editor.render("myEditor");
</script>
<input type="submit" name="Submit" value="提交" />
</td>
</tr>
</table></form>
<script type="text/javascript" src="ueditor/editor_all.js"></script>
<link rel="stylesheet" href="ueditor/themes/default/ueditor.css"/>
<form id="form1" name="form1" method="post" action="test.php">
<div id="myEditor"></div>
<!-- <script type="text/plain" id="myEditor" name="content"></script>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor();
editor.render("myEditor");
</script>-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<input name="action" type="text" value="add">
<tr>
<td><script type="text/plain" id="myEditor" name="content"> </script>
<script language="javascript">
var editor = new baidu.editor.ui.Editor({ textarea:'content'});
editor.render("myEditor");
</script>
<input type="submit" name="Submit" value="提交" />
</td>
</tr>
</table></form>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
前台:
<div id="div1" name="div1" runat="server" ></div>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor(); //实例化编辑器
editor.render("div1"); //将编辑器渲染到容器
</script>
后台:
protected void Page_Load(object sender, EventArgs e)
{
string cc = Request.Params["div1"];
}
<div id="div1" name="div1" runat="server" ></div>
<script type="text/javascript">
var editor = new baidu.editor.ui.Editor(); //实例化编辑器
editor.render("div1"); //将编辑器渲染到容器
</script>
后台:
protected void Page_Load(object sender, EventArgs e)
{
string cc = Request.Params["div1"];
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<!--获取值-->
$wzneir=$_POST['editorcontent'];
<!--div-->
<div id="tDiv"></div>
<script type="text/javascript">
var option = {
textarea: 'editorcontent' //设置提交时编辑器内容的名字
};
var editor = new baidu.editor.ui.Editor(option);
editor.render("tDiv");
</script>
$wzneir=$_POST['editorcontent'];
<!--div-->
<div id="tDiv"></div>
<script type="text/javascript">
var option = {
textarea: 'editorcontent' //设置提交时编辑器内容的名字
};
var editor = new baidu.editor.ui.Editor(option);
editor.render("tDiv");
</script>
来自:求助得到的回答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
晕死都是PHP得取值方法,谁知道Js怎么获取值?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询