Opened 14 years ago

Closed 14 years ago

#423 closed defect (wontfix)

prototype.popupURL

Reported by: anonymous Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords: prototype.popupURL
Cc:

Description

prototype.popupURL changes

HTMLArea.prototype.popupURL = function(file) {
  var url = "";
  if (file.match(/^plugin:\/\/(.*?)\/(.*)/)) {
    var plugin = RegExp.$1;
    var popup = RegExp.$2;
    if (!/\.html$/.test(popup))
      popup += ".html";
    url = _editor_url + "plugins/" + plugin + "/popups/" + popup;
  } else if(file.match(/^\/.*?/))
            url = file;
 else if(file.match(/^http.*?/))
            url = file;
    else
    url = _editor_url + this.config.popupURL + file;
  return url;
};

can someone modify prototype.popupURL?
I noticed that there is no way how to open external links in _popupDialog function.
so i added

else if(file.match(/^http.*?/))
            url = file;

to my code. maybe someone can put this in source?

Change History (1)

comment:1 Changed 14 years ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed

Why would you want to use popupURL to do this, ever?

Note: See TracTickets for help on using tickets.