当前位置: 首页 > 工具软件 > NicEditor > 使用案例 >

nicEditor 的问题 在用nicEditor和ajaxSubmit一起用的时候 出现的问题

刘和正
2023-12-01
nicEditor 的问题
在用nicEditor和ajaxSubmit一起用的时候
如果像这样
$().ready(function(){
	
	var options={
		type:'post',
		url:'?controller=Control&action=Content',
		success:function(msg){
			alert(msg)
			if(msg =="right"){
				alert("right");
			}
			else{
				alert("服务器忙请稍候");
			}
		}
	}
	
//new nicEditor({fullPanel : true}).panelInstance('area2');//放在这里的话在firefox当中能用,但IE中不能用,提交时textarea中填的值获取不到
	$("#form1").submit(function(){
	
		$(this).ajaxSubmit(options);
		return false;
		});
	new nicEditor({fullPanel : true}).panelInstance('area2');//放在这里的话在IE当中能用,firefox下 提交时textarea中填的值获取不到
		
	});
 
哪位遇到过这样的问题啊,要怎么写才能两者都兼容啊 
 类似资料: