Ticket #1387: fas-2009-02-08.patch
| File fas-2009-02-08.patch, 5.6 kB (added by guest, 3 years ago) |
|---|
-
trunk/modules/InsertImage/pluginMethods.js
28 28 } 29 29 outparam = 30 30 { 31 f_url : this.stripBaseURL(image.getAttribute('src',2)), // the second parameter makes IE return the value as it is set, as opposed to an "interpolated" (as MSDN calls it) value31 f_url : editor.stripBaseURL(image.getAttribute('src',2)), // the second parameter makes IE return the value as it is set, as opposed to an "interpolated" (as MSDN calls it) value 32 32 f_alt : image.alt, 33 33 f_border : image.border, 34 34 f_align : image.align, -
trunk/modules/InternetExplorer/InternetExplorer.js
451 451 Xinha.prototype.restoreSelection = function(savedSelection) 452 452 { 453 453 if (!savedSelection) return; 454 455 // fas: hack to avoid problem where savedSelection does not implement parentElement(). 456 // This condition occurs if there was no text selection at the time saveSelection() was called. In the case 457 // an image selection, the situation is confusing... the image may be selected in two different ways: 1) by 458 // simply clicking the image it will appear to be selected by a box with sizing handles; ro 2) by clicking and 459 // dragging over the image as you might click and drag over text. In the first case, the resulting selection 460 // object does not implement parentElement(), leading to a crash later on in the code below. The following 461 // hack avoids that problem. 462 if (!savedSelection.parentElement) 463 { 464 return; 465 } 466 454 467 // In order to prevent triggering the IE bug mentioned below, we will try to 455 468 // optimize by not restoring the selection if it happens to match the current 456 469 // selection. -
trunk/plugins/ContextMenu/ContextMenu.js
103 103 elmenus.push(null, 104 104 [ Xinha._lc("_Image Properties...", "ContextMenu"), 105 105 function() { 106 editor._insertImage(img);106 config.btnList["insertimage"][3](img); 107 107 }, 108 108 Xinha._lc("Show the image properties dialog", "ContextMenu"), 109 109 config.btnList["insertimage"][1] ] -
trunk/plugins/ContextMenu/menu.css
10 10 color: #000; 11 11 cursor: default; 12 12 z-index: 1000; 13 text-align: left; 13 14 } 14 15 15 16 div.htmlarea-context-menu table { -
trunk/popups/editor_help.html
23 23 </head> 24 24 25 25 <body class="dialog" onload="Init()"> 26 <div class="title"> XinhaHelp</div>26 <div class="title">Editor Help</div> 27 27 <table width="100%" style="background: white none repeat scroll 0%;"> 28 28 <thead style="border: 1px solid gray; background: silver none repeat scroll 0%;"> 29 29 <tr> -
trunk/XinhaCore.js
1128 1128 htmlmode: [ "Toggle HTML Source", ["ed_buttons_main.png",7,0], true, function(e) { e.execCommand("htmlmode"); } ], 1129 1129 toggleborders: [ "Toggle Borders", ["ed_buttons_main.png",7,2], false, function(e) { e._toggleBorders(); } ], 1130 1130 print: [ "Print document", ["ed_buttons_main.png",8,1], false, function(e) { if(Xinha.is_gecko) {e._iframe.contentWindow.print(); } else { e.focusEditor(); print(); } } ], 1131 saveas: [ "Save as", "ed_saveas.png", false, function(e) { e.execCommand("saveas",false,"noname.htm"); } ],1131 saveas: [ "Save as", ["ed_buttons_main.png",9,1], false, function(e) { e.execCommand("saveas",false,"noname.htm"); } ], 1132 1132 about: [ "About this editor", ["ed_buttons_main.png",8,2], true, function(e) { e.getPluginInstance("AboutBox").show(); } ], 1133 1133 showhelp: [ "Help using editor", ["ed_buttons_main.png",9,2], true, function(e) { e.execCommand("showhelp"); } ], 1134 1134 … … 3251 3251 if ( Xinha.is_gecko ) 3252 3252 { 3253 3253 setTimeout(function() { editor.initIframe(); }, 50); 3254 return false;3254 return; 3255 3255 } 3256 3256 else 3257 3257 { … … 3262 3262 catch(ex) 3263 3263 { // try later 3264 3264 setTimeout(function() { editor.initIframe(); }, 50); 3265 return; 3265 3266 } 3266 3267 3267 3268 Xinha.freeLater(this, '_doc'); … … 6739 6740 // Opera seems to have some problems mixing HEAD requests with GET requests. 6740 6741 // The GET is slower, so it's a net slowdown for Opera, but it keeps things 6741 6742 // from breaking. 6742 var method = Xinha.is_opera ? "GET" : "HEAD"; 6743 // 6744 // 07 Feb 2009, fas: I found that HEAD was also causing IE7 to hangup (for about 60 seconds) when loading 6745 // from a remote, production server. I could not reproduce the hangup when running on a localhost test 6746 // server. Using GET requests cured the problem in all contexts. 6747 // 6748 var method = (Xinha.is_opera || Xinha.is_ie) ? "GET" : "HEAD"; 6743 6749 req.onreadystatechange = callBack; 6744 6750 req.open(method, url, true); 6745 6751 req.send(null);
