2010-09-20 116 views
2

我测试我的网页在一堆浏览器和IE 8中我得到以下错误:TinyMCE的 - IE8错误

Webpage error details 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) 
Timestamp: Mon, 20 Sep 2010 20:03:46 UTC 


Message: Invalid argument. 
Line: 1314 
Char: 7 
Code: 0 
URI: http://192.168.1.93/JS/tiny_mce/tiny_mce_src.js 

上的任何想法如何解决这一问题?我的TinyMCE的版本是:

majorVersion : '3', 
minorVersion : '3.9', 
releaseDate : '2010-09-08', 

我的init是:

tinyMCE.init({ 
'mode' : 'exact', 
'elements' : 'EDITOR', 
'auto_focus' : 'EDITOR', 
'theme' : 'advanced', 
'plugins' : 'safari,save,preview,table,paste,insertdatetime', 
'height' : h, 
'width' : w, 
'cleanup_on_startup' : true, 
'fix_list_elements' : true, 
'fix_table_elements' : true, 
'fix_nesting' : false, 
'theme_advanced_layout_manager' : 'SimpleLayout', 
'theme_advanced_toolbar_location' : 'top', 
'theme_advanced_toolbar_align' : 'left', 
forced_root_block : '', 
'theme_advanced_buttons1' : 'save, cancel, |, fontselect, fontsizeselect, formatselect, |, backcolor, forecolor, |, selectall, cut, copy, paste, pastetest, pasteword, |, undo, redo', 
'theme_advanced_buttons2' : 'anchor, link, unlink, |, bold, italic, underline, strikethrough, sub, sup, |, numlist, bullist, charmap, |, outdent, indent, |, justifyleft, justifycenter, justifyright, justifyfull, |, insertdate, inserttime', 
'theme_advanced_buttons3' : 'tablecontrols', 
'theme_advanced_font_sizes' : '8pt,9pt,10pt,11pt,12pt,14pt,16pt,17pt,18pt,19pt,20pt,25pt,30pt,35pt,40pt', 
'theme_advanced_buttons3_add' : '|, code', 
'end' : 'end', 
}); 

回答

1

我的高度和宽度都搞砸了。我用来让h和w在任何地方工作的函数都很好,但是在IE中。

1

我在IE8中也有这个错误。除了我的原因是我没有指定高度/宽度。即使它仍然正确加载,并且采用它转换的文本框的大小,它仍会抛出“无效参数”异常。

$('#' + textAreaID).tinymce({ 

    ... 

    height: $('#' + textAreaID).outerHeight(), 
    width: $('#' + textAreaID).outerWidth() 
}); 

(使用jQuery语法)

通过将此代码添加到init固定它