Ticket #2495: 2495.patch
File 2495.patch, 2.3 KB (added by , 15 years ago) |
---|
-
_whatsnew.html
50 50 character inside text wasn't encoded in Opera and Safari.</li> 51 51 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2467">#2467</a>] Fixed JavaScript 52 52 error with the fit window command in source mode.</li> 53 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2495">#2495</a>] If an image was 54 placed inside a container with dimensions or floating it wasn't possible to edit its 55 properties from the toolbar (there's still a problem with the context menu).</li> 53 56 </ul> 54 57 <p> 55 58 <a href="_whatsnew_history.html">See previous versions history</a></p> -
editor/_source/internals/fck_ie.js
136 136 137 137 this.EditorDocument.attachEvent("ondblclick", Doc_OnDblClick ) ; 138 138 139 this.EditorDocument.attachEvent("onbeforedeactivate", function(){ FCKSelection.Save( true) ; } ) ;139 this.EditorDocument.attachEvent("onbeforedeactivate", function(){ FCKSelection.Save() ; } ) ; 140 140 141 141 // Catch cursor selection changes. 142 142 this.EditorDocument.attachEvent("onselectionchange", Doc_OnSelectionChange ) ; -
editor/_source/internals/fckselection_ie.js
210 210 return FCK.EditorDocument.selection ; 211 211 } 212 212 213 FCKSelection.Save = function( noFocus)213 FCKSelection.Save = function() 214 214 { 215 // Ensures the editor has the selection focus. (#1801)216 if ( !noFocus )217 FCK.Focus() ;218 219 215 var editorDocument = FCK.EditorDocument ; 220 216 221 217 if ( !editorDocument ) … … 226 222 227 223 if ( selection ) 228 224 { 229 range = selection.createRange() ; 225 // The call might fail if the document doesn't have the focus (#1801), 226 // but we don't want to modify the current selection (#2495) with a call to FCK.Focus() ; 227 try { 228 range = selection.createRange() ; 229 } 230 catch(e) {} 230 231 231 232 // Ensure that the range comes from the editor document. 232 233 if ( range )