google-code-export / lwrte

Automatically exported from code.google.com/p/lwrte
1 stars 0 forks source link

Linking Still not Working -- IE 7.05 #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I have been experiencing the same problem that others before have noted
(Issue ID 7).  I installed the latest scripts and applied the updates from
June 2009 noted in the previous issue thread, and it now works just fine in
Mozilla Firefox.  However using IE 7.05, when I try to add a link to
selected text, this section of code fails:

lwRTE.prototype.editor_cmd = function(command, args) {
    this.iframe.contentWindow.focus();
    try {

        this.iframe_doc.execCommand(command, false, args);      
    } catch(e) {
        //console.log(e)
        alert(e.description);
    }
    this.iframe.contentWindow.focus();
}

The error in the catch (Alert is because console is not a defined object in
IE) is "Invalid Argument".  The only thing I've noticed is that in the MSDN
documentation the "createLink" function only takes two arguments (The URL
and the boolean bUserInterface argument which should indeed be false). 

Any suggestions as to what may be causing this?

Thanks,
Phil

Original issue reported on code.google.com by Phil.b.g...@gmail.com on 1 Feb 2010 at 9:55