AnantLabs / xheditor

Automatically exported from code.google.com/p/xheditor
GNU Lesser General Public License v3.0
0 stars 0 forks source link

旧版可以,但在最新版里调用编辑器内容不为空的验证失败 #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
在前一版里,用JS验证编辑里的东西不能为空可以这样写
editor=$('#content').xheditor(true)[0].xheditor;
        document.form1.elements.content.value =editor.getSource();
        if (document.form1.elements.content.value ==''){

         //if(obj.value.length == 0){
            showInfo(info,MsgName,"Msg")

         return false;}
但在目前下载的最新版里,此方法无效,请问是什么原因?��
�变动了哪个地方
谢谢

Original issue reported on code.google.com by vincim...@gmail.com on 2 Jun 2010 at 9:09

GoogleCodeExporter commented 9 years ago
新版本已经变更了接口,请参考官方DEMO:http://xheditor.com/demos
/demo05.html

Original comment by yanis.w...@gmail.com on 2 Jun 2010 at 11:16

GoogleCodeExporter commented 9 years ago

Original comment by yanis.w...@gmail.com on 30 Jun 2010 at 10:58