Changeset 15173
- Timestamp:
- 09/08/08 07:08:51 (10 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/_editor/RichText.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/_editor/RichText.js
r15141 r15173 548 548 var _iframeInitialized = false; 549 549 // console.debug(this.iframe); 550 // var contentDoc = this.iframe.contentWindow.document;551 552 550 553 551 // note that on Safari lower than 420+, we have to get the iframe 554 552 // 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();564 553 565 554 // now we wait for onload. Janky hack! … … 586 575 return; 587 576 } 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(); 588 586 589 587 dojo._destroyElement(tmpContent);