Ticket #2244: fckapi.patch
File fckapi.patch, 764 bytes (added by , 16 years ago) |
---|
-
trunk/editor/_source/fckeditorapi.js
26 26 27 27 function InitializeAPI() 28 28 { 29 var oParentWindow = window.parent ; 29 // Find the top-most browser window 30 var oParentWindow = window ; 31 32 while( oParentWindow && oParentWindow.frameElement ) 33 { 34 if( FCKBrowserInfo.IsIE ) 35 { 36 oParentWindow = oParentWindow.frameElement.parentNode.ownerDocument.parentWindow; 37 } 38 else 39 { 40 oParentWindow = oParentWindow.frameElement.parentNode.ownerDocument.defaultView; 41 } 42 } 30 43 31 44 if ( !( FCKeditorAPI = oParentWindow.FCKeditorAPI ) ) 32 45 {