Changeset 1316
- Timestamp:
- 06/16/12 02:44:39 (1 year ago)
- Location:
- trunk/plugins/MootoolsFileManager
- Files:
-
- 2 modified
-
MootoolsFileManager.FileManager.js (modified) (2 diffs)
-
MootoolsFileManager.ImageManager.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/MootoolsFileManager/MootoolsFileManager.FileManager.js
r1313 r1316 106 106 }); 107 107 } 108 108 if(Xinha.is_ie) this.current_selection = this.editor.saveSelection(); 109 109 this.FileManagerWidget.show(); 110 110 }; … … 118 118 var param = this.FileManagerAttributes(); 119 119 param.f_href = path; 120 120 if(Xinha.is_ie) this.editor.restoreSelection(this.current_selection); 121 121 if (!a) 122 122 { -
trunk/plugins/MootoolsFileManager/MootoolsFileManager.ImageManager.js
r1313 r1316 105 105 } 106 106 107 if(Xinha.is_ie) this.current_selection = this.editor.saveSelection(); 107 108 this.ImageManagerWidget.show(); 108 109 }; … … 514 515 MootoolsFileManager.prototype.ImageManagerReturn = function(path, file) 515 516 { 517 516 518 var editor = this.editor; 517 519 var self = this; … … 520 522 var param = self.ImageManagerAttributes(); 521 523 param.f_url = path; 524 525 if(Xinha.is_ie) this.editor.restoreSelection(this.current_selection); 522 526 523 527 var img = image; … … 528 532 editor._doc.execCommand("insertimage", false, param.f_url); 529 533 img = range.parentElement(); 534 530 535 // wonder if this works... 531 536 if (img.tagName.toLowerCase() != "img") { … … 591 596 break; 592 597 593 case "f_align" : if(value && value !== true ) { img.align = value; } else { img.removeAttribute('align'); } break;598 case "f_align" : if(value && value !== true && value !== 'true') { img.align = value; } else { img.removeAttribute('align'); } break; 594 599 595 600 case "f_width" :
