Changeset 1267
- Timestamp:
- 06/18/10 00:23:58 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
XinhaCore.js (modified) (1 diff)
-
modules/Dialogs/XinhaDialog.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1266 r1267 864 864 this.convertUrlsToLinks = true; 865 865 866 /** Set to true to hide media objects when a div-type dialog box is open, to prevent show-through 867 * Default: <code>false</code> 868 * @type Boolean 869 */ 870 this.hideObjectsBehindDialogs = false; 866 871 867 872 /** Size of color picker cells<br /> -
trunk/modules/Dialogs/XinhaDialog.js
r1238 r1267 538 538 } 539 539 }); 540 //hide object & embed tags in document so they won't show through 541 if (this.editor.config.hideObjectsBehindDialogs) 542 { 543 this.objTags = this.editor._doc.getElementsByTagName('object'); 544 this.embedTags = this.editor._doc.getElementsByTagName('embed'); 545 for (var j=0; j<this.objTags.length; j++) 546 { 547 this.objTags[j].__object_hidden = this.objTags[j].style.visibility; 548 this.objTags[j].style.visibility = 'hidden'; 549 } 550 for (j=0; j<this.embedTags.length; j++) 551 { 552 this.embedTags[j].__embed_hidden = this.embedTags[j].style.visibility; 553 this.embedTags[j].style.visibility = 'hidden'; 554 } 555 } 556 540 557 var dialogHeight = rootElem.offsetHeight; 541 558 var dialogWidth = rootElem.offsetWidth; … … 639 656 this.editor._iframe.style.visibility = this._restoreTo[1]; 640 657 this.editor.showPanels(this._restoreTo[2]); 658 } 659 660 //restore visibility of object & embed tags in document 661 if (this.editor.config.hideObjectsBehindDialogs) 662 { 663 for (var j=0; j<this.objTags.length; j++) 664 { 665 this.objTags[j].style.visibility = this.objTags[j].__object_hidden; 666 } 667 for (j=0; j<this.embedTags.length; j++) 668 { 669 this.embedTags[j].style.visibility = this.embedTags[j].__embed_hidden; 670 } 641 671 } 642 672
