Changeset 216


Ignore:
Timestamp:
06/03/05 07:44:45 (14 years ago)
Author:
niko
Message:

#286
don't open popups in design-mode and remove that if(document.designMode in final HTML-Code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r215 r216  
    40794079  html = html.replace(/<(\/?)i(\s|>|\/)/ig, "<$1em$2"); 
    40804080 
     4081  // replace window.open to that any clicks won't open a popup in designMode 
     4082  html = html.replace("onclick=\"try{if(document.designMode &amp;&amp; document.designMode == 'on') return false;}catch(e){} window.open(", "onclick=\"window.open("); 
     4083 
    40814084  // Figure out what our server name is, and how it's referenced 
    40824085  var serverBase = location.href.replace(/(https?:\/\/[^\/]*)\/.*/, '$1') + '/'; 
     
    41044107    html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2"); 
    41054108  } 
     4109 
     4110  // replace window.open to that any clicks won't open a popup in designMode 
     4111  html = html.replace("onclick=\"window.open(", "onclick=\"try{if(document.designMode &amp;&amp; document.designMode == 'on') return false;}catch(e){} window.open("); 
     4112 
    41064113  html = this.inwardSpecialReplacements(html); 
    41074114 
Note: See TracChangeset for help on using the changeset viewer.