Opened 15 years ago

Closed 15 years ago

#423 closed defect (wontfix)


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


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;
    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 15 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.