如何获取FCK编辑器的文本内容??这是JSP页面中的...用的是SSH框架.求救.. 问题解决追加财富值...
<s:formnamespace="/email"action="sendMailAction!sendEmail.action"method="post"theme="...
<s:form namespace="/email" action="sendMailAction!sendEmail.action"
method="post" theme="simple">
<table>
<tr>
<td>
<!-- 设置隐藏的邮件的其他相关信息 -->
<input type="hidden" value="email.nid" name="email.nid">
<input type="hidden" value="email.sendtime" name="email.sendtime">
<input type="hidden" value="email.sender" name="email.sender">
<input type="hidden" value="email.isdel" name="email.isdel">
<input type="button" value="发送">
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</tr>
<tr>
<td>
收件人:
<input type="text" name="email.receiver.email"
id="email.receiver.email">
</td>
</tr>
<tr>
<td>
主题:
<input type="text" name="email.stitle" id="email.stitle">
</td>
</tr>
<tr>
<td id="td">
附件:
<input type="file" name="email.isfile" id="email.isfile">
<input type="button" value="添加更多附件" onclick="addMore()">
</td>
</tr>
<tr>
<td>
邮件内容:
<FCK:editor id="email.content" width="800" height="300">
</FCK:editor>
</td>
</tr>
<tr>
<td>
<a href="<%=path%>/email/sendMailAction!sendEmail.action">send</a>
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</table>
</s:form> 展开
method="post" theme="simple">
<table>
<tr>
<td>
<!-- 设置隐藏的邮件的其他相关信息 -->
<input type="hidden" value="email.nid" name="email.nid">
<input type="hidden" value="email.sendtime" name="email.sendtime">
<input type="hidden" value="email.sender" name="email.sender">
<input type="hidden" value="email.isdel" name="email.isdel">
<input type="button" value="发送">
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</tr>
<tr>
<td>
收件人:
<input type="text" name="email.receiver.email"
id="email.receiver.email">
</td>
</tr>
<tr>
<td>
主题:
<input type="text" name="email.stitle" id="email.stitle">
</td>
</tr>
<tr>
<td id="td">
附件:
<input type="file" name="email.isfile" id="email.isfile">
<input type="button" value="添加更多附件" onclick="addMore()">
</td>
</tr>
<tr>
<td>
邮件内容:
<FCK:editor id="email.content" width="800" height="300">
</FCK:editor>
</td>
</tr>
<tr>
<td>
<a href="<%=path%>/email/sendMailAction!sendEmail.action">send</a>
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</table>
</s:form> 展开
3个回答
展开全部
我想你是粗心了,<FCK:editor id="email.content" width="800" height="300">这句话里加个name属性就OK了。
<s:form namespace="/email" action="sendMailAction!sendEmail.action"
method="post" theme="simple">
<table>
<tr>
<td>
<!-- 设置隐藏的邮件的其他相关信息 -->
<input type="hidden" value="email.nid" name="email.nid">
<input type="hidden" value="email.sendtime" name="email.sendtime">
<input type="hidden" value="email.sender" name="email.sender">
<input type="hidden" value="email.isdel" name="email.isdel">
<input type="button" value="发送">
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</tr>
<tr>
<td>
收件人:
<input type="text" name="email.receiver.email"
id="email.receiver.email">
</td>
</tr>
<tr>
<td>
主题:
<input type="text" name="email.stitle" id="email.stitle">
</td>
</tr>
<tr>
<td id="td">
附件:
<input type="file" name="email.isfile" id="email.isfile">
<input type="button" value="添加更多附件" onclick="addMore()">
</td>
</tr>
<tr>
<td>
邮件内容:
<FCK:editor id="email.content" width="800" name="email.content" height="300">
</FCK:editor>
</td>
</tr>
<tr>
<td>
<a href="<%=path%>/email/sendMailAction!sendEmail.action">send</a>
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</table>
</s:form>
<s:form namespace="/email" action="sendMailAction!sendEmail.action"
method="post" theme="simple">
<table>
<tr>
<td>
<!-- 设置隐藏的邮件的其他相关信息 -->
<input type="hidden" value="email.nid" name="email.nid">
<input type="hidden" value="email.sendtime" name="email.sendtime">
<input type="hidden" value="email.sender" name="email.sender">
<input type="hidden" value="email.isdel" name="email.isdel">
<input type="button" value="发送">
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</tr>
<tr>
<td>
收件人:
<input type="text" name="email.receiver.email"
id="email.receiver.email">
</td>
</tr>
<tr>
<td>
主题:
<input type="text" name="email.stitle" id="email.stitle">
</td>
</tr>
<tr>
<td id="td">
附件:
<input type="file" name="email.isfile" id="email.isfile">
<input type="button" value="添加更多附件" onclick="addMore()">
</td>
</tr>
<tr>
<td>
邮件内容:
<FCK:editor id="email.content" width="800" name="email.content" height="300">
</FCK:editor>
</td>
</tr>
<tr>
<td>
<a href="<%=path%>/email/sendMailAction!sendEmail.action">send</a>
<input type="button" value="存草稿">
<input type="button" value="关闭">
</td>
</table>
</s:form>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用javascript取
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
形式如:
var oEditor = FCKeditorAPI.GetInstance('content');
var content = oEditor.GetXHTML(true);
var oEditor = FCKeditorAPI.GetInstance('content');
var content = oEditor.GetXHTML(true);
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询