我在一堆浏览器中测试我的页面,在IE 8中我收到以下错误:
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',
我的初学者是:
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',
});
答案 0 :(得分:1)
我的身高和宽度搞砸了。除了IE之外,我以前在任何地方工作的功能都很好用。
答案 1 :(得分:1)
我在IE8中也遇到了这个错误。除了我的原因之外,我根本没有指定高度/宽度。即使它仍然正确加载,并采用它转换的文本框的大小,它仍然会引发“无效参数”异常。
通过将此代码添加到init:
来修复它$('#' + textAreaID).tinymce({
...
height: $('#' + textAreaID).outerHeight(),
width: $('#' + textAreaID).outerWidth()
});
(使用jQuery语法)