Changeset 15173

Show
Ignore:
Timestamp:
09/08/08 07:08:51 (10 months ago)
Author:
doughays
Message:

Fixes #7614. References #7097. Remerge Editor change from [14417].

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/RichText.js

    r15141 r15173  
    548548                var _iframeInitialized = false; 
    549549                // console.debug(this.iframe); 
    550                 // var contentDoc = this.iframe.contentWindow.document; 
    551  
    552550 
    553551                // note that on Safari lower than 420+, we have to get the iframe 
    554552                // by ID in order to get something w/ a contentDocument property 
    555  
    556                 var contentDoc = this.iframe.contentDocument; 
    557                 contentDoc.open(); 
    558                 if(dojo.isAIR){ 
    559                         contentDoc.body.innerHTML = html; 
    560                 }else{ 
    561                         contentDoc.write(this._getIframeDocTxt(html)); 
    562                 } 
    563                 contentDoc.close(); 
    564553 
    565554                // now we wait for onload. Janky hack! 
     
    586575                                        return; 
    587576                                } 
     577 
     578                                var contentDoc = this.document; 
     579                                        contentDoc.open(); 
     580                                if(dojo.isAIR){ 
     581                                        contentDoc.body.innerHTML = html; 
     582                                }else{ 
     583                                        contentDoc.write(this._getIframeDocTxt(html)); 
     584                                } 
     585                                contentDoc.close(); 
    588586 
    589587                                dojo._destroyElement(tmpContent);