我用了他的jsp版本,发现一旦内容是空,tomcat就会自动关闭,请问哪位大虾解决这个问题了?或者有个别的编辑器代替这个?希望能给小弟发一份,谢谢了。
当然最好有这个问题的解决方案了。
小弟的油箱是:[email protected]

解决方案 »

  1.   

    upload.jsp第33行改为 sTemp=" ";原来记得是 sTemp=System.in(0);
      

  2.   

    不用这样吧,在.js中改下:
    在doSubmit前加上
    if(getHTML()=="") return;
      

  3.   

    inlcude 中的editor.js脚本,打开查找function getHTML()
    在定义最后
    if ((html.toLowerCase()=="<p>&nbsp;</p>")||(html.toLowerCase()=="<p></p>")){
    html = "";
    }
    return html;
    修改为
            if(html==""){
                    html=" ";  //此处你可以自定义动作
            }else if ((html.toLowerCase()=="<p>&nbsp;</p>")||(html.toLowerCase()=="<p></p>")){
    html = "";
    }
    return html;