+ -
当前位置:首页 → 问答吧 → 无法向网页编辑器editor传入值

无法向网页编辑器editor传入值

时间:2011-08-28

来源:互联网

各位大哥,小弟网站后台的企业信息修改模块用的editor编辑器,现在问题是进入修改页面后editor编辑的编辑区域是空白的也就是数据库里的值没有传入的编辑器中,我不知道是哪里出问题了,代码如下
VBScript code
<td height="300" colspan="6"> <textarea name="Content" style="display:none"><%=Rs("Content")%></textarea> 
              <iframe ID="editor2" src="../editor.asp" frameborder=1 scrolling=no width="620" height="405" onload="window.editor2.HtmlEdit.document.body.innerHtml=document.myform.content.value"></iframe>
                    </td>

HtmLEdit不知道是什么意思,我是从百度搜索的这句话,大家帮忙看看是不是这句话有问题
再就是网站的新闻修改模块没有问题,他的代码是这样写的
VB code
 <td valign="top"> 
<textarea name="Content" style="display:none"> <%=rs_news("Conetent")%> </textarea>
<iframe ID="editor" src="../editor.asp?Action=News&ID= <%=ID%>" frameborder=1 scrolling=no width="620" height="405"> </iframe>
</td>

我不明白?Action=News&ID=<%=ID%>,为什么要向editor.asp传递Action和ID这两个参数呢?

作者: liuying1982000   发布时间: 2011-08-28

<textarea name="Content" style="display:none"><%=Server.HtmlEncode(Rs("Content"))%></textarea> 

另外大小写一定是区分的
window.editor2.document.body.innerHTML=document.myform.content.value

作者: net_lover   发布时间: 2011-08-28

根据不同的参数可以显示不同的界面和风格

作者: net_lover   发布时间: 2011-08-28