Changeset 807


Ignore:
Timestamp:
04/03/07 16:20:40 (13 years ago)
Author:
ray
Message:
  • Ticket #998 whitespace added before and/or after content (in non-fullpage mode)
  • disabled Xinha.collectGarbageForIE() for Mozilla, see Ticket #30
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r797 r807  
    18391839    { 
    18401840      textarea.value = editor.outwardHtml(editor.getHTML()); 
    1841       var x = xinha.parentNode.replaceChild(textarea,xinha); 
    1842       // put it back into the page to let Xinha.collectGarbageForIE() do its work afterwards 
    1843       textarea.style.display = ""; 
    1844       x.style.display = 'none'; 
    1845       document.body.appendChild(x); 
     1841      if (!Xinha.is_ie) 
     1842      { 
     1843        xinha.parentNode.replaceChild(textarea,xinha); 
     1844      } 
    18461845      return true; 
    18471846    } 
     
    41394138      if ( !this.config.fullPage ) 
    41404139      { 
    4141         html = Xinha.getHTML(this._doc.body, false, this); 
     4140        html = Xinha.getHTML(this._doc.body, false, this).trim(); 
    41424141      } 
    41434142      else 
     
    59835982 
    59845983Xinha.init(); 
    5985 Xinha.addDom0Event(window,'unload',Xinha.collectGarbageForIE); 
    5986  
     5984 
     5985if (Xinha.is_ie) 
     5986{ 
     5987  Xinha.addDom0Event(window,'unload',Xinha.collectGarbageForIE); 
     5988} 
    59875989Xinha.notImplemented = function(methodName)  
    59885990{ 
Note: See TracChangeset for help on using the changeset viewer.