安大互联
财经热点 > Asp编程 > 有关ewebeditor编辑器在修改文章时内容显示不完整的解决
有关ewebeditor编辑器在修改文章时内容显示不完整的解决
浏览次数:【628】  发布日期:2009-8-13 12:09:22    文章分类:Asp编程   
专题:】 【
 

在用ewebeditor编辑器编辑文章的时候(就是更改文章的时候),有没有遇到过,被自动截断了最后一个段落的几行文字,全部文字都跑到录入框外面了的情景呢?

起因是这样的

官方给出的演示方法为

添加

<input type="hidden" name="content1"  value="">
<iframe ID="eWebEditor1" src="ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="550" HEIGHT="350" style="margin-top:10px;"></iframe>

那么许多人在更改的时候就会写成

<input type="hidden" name="content1"  value="<%=rs("content")%>">
<iframe ID="eWebEditor1" src="ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="550" HEIGHT="350" style="margin-top:10px;"></iframe>

其实这样也未尝不可 你只需要在添加的时候先把内容复制到文本文档里(作用是清除了htm代码),在复制到编辑器就可以,不过这样很麻烦

其实最好的要领就是 将这个文本字段换成文本区域:

就是把  <input type="hidden" ...  这一段换成 <textarea style="display:none".... 这样

完美解决这个问题 Ye

手机扫码浏览该文章
 ● 相关资讯专题
  • 网络建设业务咨询

   TEl:13626712526