代码之家  ›  专栏  ›  技术社区  ›  Justin808

TinyMCE-IE8错误

  •  2
  • Justin808  · 技术社区  · 15 年前

    我在一堆浏览器中测试我的页面,在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
    

    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', 
    });
    
    2 回复  |  直到 15 年前
        1
  •  1
  •   Justin808    15 年前

    我的身高和宽度都搞砸了。我用来让h和w在任何地方都能正常工作,但在IE中除外。

        2
  •  1
  •   Albert Bori    15 年前

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

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