Changeset 1198
- Timestamp:
- 11/07/09 23:06:56 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
XinhaCore.js (modified) (2 diffs)
-
modules/InternetExplorer/InternetExplorer.js (modified) (1 diff)
-
popups/editor_help.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1192 r1198 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"); } ], … … 3247 3247 { // try later 3248 3248 setTimeout(function() { editor.initIframe(); }, 50); 3249 return false; 3249 3250 } 3250 3251 -
trunk/modules/InternetExplorer/InternetExplorer.js
r1173 r1198 452 452 { 453 453 if (!savedSelection) return; 454 455 // Ticket #1387 456 // avoid problem where savedSelection does not implement parentElement(). 457 // This condition occurs if there was no text selection at the time saveSelection() was called. In the case 458 // an image selection, the situation is confusing... the image may be selected in two different ways: 1) by 459 // simply clicking the image it will appear to be selected by a box with sizing handles; or 2) by clicking and 460 // dragging over the image as you might click and drag over text. In the first case, the resulting selection 461 // object does not implement parentElement(), leading to a crash later on in the code below. The following 462 // hack avoids that problem. 463 if (!savedSelection.parentElement) 464 { 465 return; 466 } 467 454 468 // In order to prevent triggering the IE bug mentioned below, we will try to 455 469 // optimize by not restoring the selection if it happens to match the current -
trunk/popups/editor_help.html
r740 r1198 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%;">
