IE8下ckeditor无法正常使用,提示"例外被抛出且未被接住"的解决办法

<script language="javascript" src="ckeditor/ckeditor.js"></script>

<textarea cols="80" id="editor1" name="editor1" rows="10" class="ckeditor"></textarea>

 <script type="text/javascript">
  CKEDITOR.replace( 'editor1',{toolbar:'Basic'});
 </script>

像如果上代码就会在IE8下出现错误。因为在HTML中使用了clss="ckeditor"又在js中使用.replace("editor1"),两次重复使用就会造成这样的错误。只使用其中一种即可,建设使用JS的.replace这种方式。

【原文】http://hi.baidu.com/281305450/item/300ddde99d3a673886d9de91

原文地址:https://www.cnblogs.com/xmily/p/3396180.html