主题: IE9,IE10的问题,急求解答!详细情况见贴内!
作者: woca, 发布日期: 2013-05-13 17:28:51, 浏览数: 2637

我现在一个JSP内创建了2个kindeditor ,  IE8没问题,  IE9  IE10就会报脚本错误  "缺少标示符,字符串或数字".代码如下:



var editor1;
var editor;
KindEditor.ready(function(K) {
editor= K.create('textarea[name="content"]', {
items : [
'cut', 'copy', 'paste',
'plainpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', '|', 'quickformat', 'selectall', '|', 
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'bold',
'italic', '|', 'image','|','fullscreen',
],
cssPath : '${pageContext.request.contextPath}/kindeditor/plugins/code/prettify.css',
uploadJson : '${pageContext.request.contextPath}/kindeditor/jsp/upload_json.jsp',
fileManagerJson : '${pageContext.request.contextPath}/kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true,

});
editor.readonly(true);

editor1= K.create('textarea[name="content2"]', {
items : [
'cut', 'copy', 'paste',
'plainpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', '|', 'quickformat', 'selectall', '|', 
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'bold',
'italic', '|', 'image','|','fullscreen',
],
cssPath : '${pageContext.request.contextPath}/kindeditor/plugins/code/prettify.css',
uploadJson : '${pageContext.request.contextPath}/kindeditor/jsp/upload_json.jsp',
fileManagerJson : '${pageContext.request.contextPath}/kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true,
afterCreate : function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=example]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=example]')[0].submit();
});
}
});



prettyPrint();
});


求解决办法!!!!


发表新帖 发表回复