Changeset 2375
- Timestamp:
- 2008-08-25 22:13:02 (5 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 4 modified
-
editor/_source/internals/fck_contextmenu.js (modified) (1 diff)
-
editor/_source/internals/fck_ie.js (modified) (1 diff)
-
editor/_source/internals/fckselection_ie.js (modified) (3 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js
r2287 r2375 342 342 function FCK_ContextMenu_OnItemClick( item ) 343 343 { 344 FCK.Focus() ; 344 // IE might work incorrectly if we refocus the editor #798 345 if ( !FCKBrowserInfo.IsIE ) 346 FCK.Focus() ; 347 345 348 FCKCommands.GetCommand( item.Name ).Execute( item.CustomData ) ; 346 349 } -
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r2256 r2375 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. -
FCKeditor/trunk/editor/_source/internals/fckselection_ie.js
r2363 r2375 211 211 } 212 212 213 FCKSelection.Save = function( noFocus ) 214 { 215 // Ensures the editor has the selection focus. (#1801) 216 if ( !noFocus ) 217 FCK.Focus() ; 218 213 FCKSelection.Save = function() 214 { 219 215 var editorDocument = FCK.EditorDocument ; 220 216 … … 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. … … 255 256 FCKSelection.Restore = function() 256 257 { 257 if ( this.SelectionData )258 if ( this.SelectionData && this.SelectionData.createRange ) 258 259 { 259 260 FCK.IsSelectionChangeLocked = true ; -
FCKeditor/trunk/_whatsnew.html
r2374 r2375 55 55 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1891">#1891</a>] Removed 56 56 unnecessary name attributes in dialogs. </li> 57 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/798">#798</a>, 58 <a target="_blank" href="http://dev.fckeditor.net/ticket/2495">#2495</a>] If an image was 59 placed inside a container with dimensions or floating it wasn't possible to edit its 60 properties from the toolbar or context menu.</li> 57 61 </ul> 58 62 <p>