Ignore:
Timestamp:
07/19/05 06:23:58 (14 years ago)
Author:
gogo
Message:

Some leak patching for Internet Explorer. This actually works! See
ticket:30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/testbed.html

    r260 r277  
    5555      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5656      [ 
    57         'FullScreen' 
     57         
    5858      ]; 
    5959             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    8484 
    8585       xinha_config = xinha_config ? xinha_config : new HTMLArea.Config(); 
     86/* 
     87       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
     88      //  otherwise it won't work! 
     89      xinha_config.stylistLoadStylesheet(document.location.href.replace(/[^\/]*\.html/, 'stylist.css')); 
    8690 
     91      // Or we can load styles directly 
     92      xinha_config.stylistLoadStyles('p.red_text { color:red }'); 
     93 
     94      // If you want to provide "friendly" names you can do so like 
     95      // (you can do this for stylistLoadStylesheet as well) 
     96      xinha_config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'}); 
     97*/ 
    8798      /** STEP 3 *************************************************************** 
    8899       * We first create editors for the textareas. 
     
    125136 
    126137    window.onload   = xinha_init; 
    127     window.onunload = HTMLArea.flushEvents; 
     138    // window.onunload = HTMLArea.collectGarbageForIE; 
    128139  </script> 
    129140</head> 
     
    158169    document.write(document.compatMode); 
    159170  </script> 
     171  <a href="#" onclick="xinha_editors.myTextArea.hidePanels();">Hide</a> 
     172  <a href="#" onclick="xinha_editors.myTextArea.showPanels();">Show</a> 
    160173</body> 
    161174</html> 
Note: See TracChangeset for help on using the changeset viewer.