最近在做一个新闻发布系统,采用的在线编辑器是eWebEditor,好不容易做完,却发现每增加一条新闻数据库中都会添加一条相同的重复新闻,苦苦思索都不得解啊,哪位用过eWebEditor的大哥帮忙解答一下啊!

解决方案 »

  1.   

    那你要看你自己的代码是否有问题了.eWebEditor本身就像一个普通的文本筐.如果数据库出现重复数据,你应该跟踪你向数据库写入数据的那段代码.
    用法:<textarea style="display:none" name="content1"><%=sContent%></textarea>
    <iframe id="eWebEditor1" src="../eWebEditor.jsp?id=content1&amp;style=standard" frameborder="0" scrolling="no" width="650" height="350"></iframe>
    取数据:
    String sContent = new String(request.getParameter("content1").getBytes("iso8859_1"));
      

  2.   

    我的调用代码:
    <textarea name="content" class="chinese" style="display:none"></textarea>
          <iframe ID="newseditor" src="../../eWebEditor.jsp?id=content&style=CoolBlue" frameborder="0" scrolling="no" width="100%" height="350"></iframe>提交到bean中我使用 property="*"来对应的,应该也没问题啊
      

  3.   

    那就跟踪检查你往数据库写入的代码吧,耐心点调试吧.
    eWebEditor没有问题的.
      

  4.   

    这个问题刚才莫名其妙解决了,但又出来一个新问题,现在不能上传图片什么的了,一点那个‘上传’就弹出javascript错误提示:
    d_file.myform.uploadfile为空或不是对象
    http://localhost:8080/chaterhouse2/dialog/media.htm
    这又怎么啦?
      

  5.   

    把dialog文件夹下的js重新拷贝一下.
      

  6.   

    大哥,我要哭了啊,刚才花大力气把eWebEditor相关的文件统统删除,然后重新加入一个新的eWebEditor,图片倒是可以上传了,写入数据库的数据又是双份的了,我这电脑不会闹鬼了吧?