fckeditor在ie6下的表现差强人意
加载是http请求有很多abort不说
如果编辑器前后有<select>标签的话,会导致页面闪一下
代码片段:
<%--<table>--%>
<select>
<option>111</option>
<option>111</option>
<option>111</option>
<option>111</option>
</select>
<%--</table>--%>
<script type="text/javascript" src="${context}/fck/fckeditor.js"></script>
<textarea name="content" id="fckContent" rows="8" cols="120" style="width:495px;" ></textarea>
<script type="text/javascript">
$("#fckContent").ready(function(){
var elementName = this.name;
var sBasePath = "/fck/";
var oFCKeditordesc = new FCKeditor('content');
oFCKeditordesc.BasePath = sBasePath ;
this.oldHeigth = document.getElementsByName("content")[0].style.height;
if(this.oldHeigth.length>0){
oFCKeditordesc.Height = this.oldHeigth ;
}
this.oldWidth = document.getElementsByName("content")[0].style.width;
if(this.oldWidth.length>0){
oFCKeditordesc.Width = this.oldWidth ;
}
oFCKeditordesc.ReplaceTextarea() ;
});
</script>
解决方法倒也简单,把<select>用<table>包起来,试过用<div>包没作用