PasteHTML on Firefox 3.6.9 and later

  •  09-19-2010, 2:08 PM

    PasteHTML on Firefox 3.6.9 and later

    Hi,
     
     I have a couple of custom buttons that pasteHTML <a> tags into the content, one does pasteHTML('<a href="https://absoluteurblah/blah/blah">Text</a>'); and the other does pasteHTML('<a href="{{PlaceHolder}}">Text</a>');
     
    Starting with Firefox version 3.6.9 neither of the buttons do what they're supposed to do. The former pasteHTML pastes the absolute url as relative ie. https://absoluteurblah/blah/blah becomes ../blah/ and the latter pasteHTML pastes the href property HTML encoded, ie <a href="{{PlaceHolder}}"> becomes <a href="%7B%7BPlaceHolder%7D%7D">
     
    Both unwanted transformations break things elsewhere, so is there a CuteEditor setting or a workaround to avoid it?
     
    I am using CuteEditor for .NET 6.6 altough the same thing happened on 6.4. Steps to reproduce:
     0. Install or upgrade to Firefox 3.6.9 or later
     1. Go to
    http://cutesoft.net/example/JavaScript-API.aspx
     2.  type "javas cript:PasteHTML('<a href="{{PlaceHolder}}">Test</a>');" into the browser address bar without the space between s and c and without ""
     3. Press HTML to confirm HTML encoded href
     
    This didnt happen on Firefox 3.6.8 and it doesnt happen on IE or Chrome
View Complete Thread