Changeset 2113
- Timestamp:
- 2008-06-23 18:58:18 (7 months ago)
- Location:
- FCKeditor/branches/versions/2.6.x
- Files:
-
- 1 added
- 27 modified
-
_dev/build_release.bat (modified) (1 diff)
-
editor/fckeditor.html (modified) (2 diffs)
-
editor/filemanager/browser/default/browser.html (modified) (1 diff)
-
editor/filemanager/browser/default/frmactualfolder.html (modified) (1 diff)
-
editor/filemanager/browser/default/js/common.js (modified) (1 diff)
-
editor/filemanager/browser/default/js/fckxml.js (modified) (2 diffs)
-
editor/js/fckadobeair.js (modified) (1 diff)
-
editor/plugins/dragresizetable/fckplugin.js (modified) (4 diffs)
-
editor/_source/classes/fckdomrange.js (modified) (1 diff)
-
editor/_source/classes/fckenterkey.js (modified) (2 diffs)
-
editor/_source/classes/fckiecleanup.js (modified) (1 diff)
-
editor/_source/fckeditorapi.js (modified) (2 diffs)
-
editor/_source/internals/fckconfig.js (modified) (1 diff)
-
editor/_source/internals/fckdebug_empty.js (added)
-
editor/_source/internals/fckdebug.js (modified) (1 diff)
-
editor/_source/internals/fckdialog.js (modified) (3 diffs)
-
editor/_source/internals/fckdocumentprocessor.js (modified) (1 diff)
-
editor/_source/internals/fckdomtools.js (modified) (1 diff)
-
editor/_source/internals/fck_gecko.js (modified) (3 diffs)
-
editor/_source/internals/fck_ie.js (modified) (1 diff)
-
editor/_source/internals/fck.js (modified) (2 diffs)
-
editor/_source/internals/fckselection_gecko.js (modified) (2 diffs)
-
editor/_source/internals/fckselection_ie.js (modified) (1 diff)
-
editor/_source/internals/fcktools.js (modified) (2 diffs)
-
fckconfig.js (modified) (1 diff)
-
fckpackager.xml (modified) (2 diffs)
-
_whatsnew_history.html (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/versions/2.6.x/_dev/build_release.bat
r2064 r2113 26 26 27 27 :: Update this variable for each new release. 28 SET RELEASER_VERSION=2.6. 128 SET RELEASER_VERSION=2.6.2 29 29 30 30 CLS -
FCKeditor/branches/versions/2.6.x/editor/fckeditor.html
r2064 r2113 104 104 LoadScript( '_source/internals/fckconfig.js' ) ; 105 105 106 LoadScript( '_source/internals/fckdebug .js' ) ;106 LoadScript( '_source/internals/fckdebug_empty.js' ) ; 107 107 LoadScript( '_source/internals/fckdomtools.js' ) ; 108 108 LoadScript( '_source/internals/fcktools.js' ) ; … … 238 238 FCKConfig_PreProcess() ; 239 239 240 var FCK_InternalCSS = FCKConfig.FullBasePath + 'css/fck_internal.css' ; // @Packager.RemoveLine 241 var FCK_ShowTableBordersCSS = FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ; // @Packager.RemoveLine 240 // Load the full debug script. 241 if ( FCKConfig.Debug ) 242 LoadScript( '_source/internals/fckdebug.js' ) ; 243 244 </script> 245 <script type="text/javascript"> 246 247 var FCK_InternalCSS = FCKConfig.BasePath + 'css/fck_internal.css' ; // @Packager.RemoveLine 248 var FCK_ShowTableBordersCSS = FCKConfig.BasePath + 'css/fck_showtableborders_gecko.css' ; // @Packager.RemoveLine 242 249 /* @Packager.RemoveLine 243 250 // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt). 244 var FCK_InternalCSS = FCKTools.FixCssUrls( FCKConfig. FullBasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__UnknownObject{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_plugin.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ;245 var FCK_ShowTableBordersCSS = FCKTools.FixCssUrls( FCKConfig. FullBasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ;251 var FCK_InternalCSS = FCKTools.FixCssUrls( FCKConfig.BasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__UnknownObject{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_plugin.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ; 252 var FCK_ShowTableBordersCSS = FCKTools.FixCssUrls( FCKConfig.BasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ; 246 253 @Packager.RemoveLine */ 247 254 -
FCKeditor/branches/versions/2.6.x/editor/filemanager/browser/default/browser.html
r2064 r2113 44 44 } 45 45 catch( e ) 46 { 47 break ; 48 } 46 {} 49 47 50 48 // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... -
FCKeditor/branches/versions/2.6.x/editor/filemanager/browser/default/frmactualfolder.html
r2064 r2113 42 42 } 43 43 catch( e ) 44 { 45 break ; 46 } 44 {} 47 45 48 46 // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... -
FCKeditor/branches/versions/2.6.x/editor/filemanager/browser/default/js/common.js
r2064 r2113 37 37 } 38 38 catch( e ) 39 { 40 break ; 41 } 39 {} 42 40 43 41 // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... -
FCKeditor/branches/versions/2.6.x/editor/filemanager/browser/default/js/fckxml.js
r1825 r2113 62 62 if ( oXmlHttp.readyState == 4 ) 63 63 { 64 if ( ( oXmlHttp.status != 200 && oXmlHttp.status != 304 ) || oXmlHttp.responseXML == null || oXmlHttp.responseXML.firstChild == null ) 64 var oXml ; 65 try 66 { 67 // this is the same test for an FF2 bug as in fckxml_gecko.js 68 // but we've moved the responseXML assignment into the try{} 69 // so we don't even have to check the return status codes. 70 var test = oXmlHttp.responseXML.firstChild ; 71 oXml = oXmlHttp.responseXML ; 72 } 73 catch ( e ) 74 { 75 try 76 { 77 oXml = (new DOMParser()).parseFromString( oXmlHttp.responseText, 'text/xml' ) ; 78 } 79 catch ( e ) {} 80 } 81 82 if ( !oXml || !oXml.firstChild || oXml.firstChild.nodeName == 'parsererror' ) 65 83 { 66 84 alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + … … 71 89 } 72 90 73 oFCKXml.DOMDocument = oXml Http.responseXML;91 oFCKXml.DOMDocument = oXml ; 74 92 asyncFunctionPointer( oFCKXml ) ; 75 93 } -
FCKeditor/branches/versions/2.6.x/editor/js/fckadobeair.js
r1629 r2113 168 168 { 169 169 // Force pointing to the CSS files instead of using the inline CSS cached styles. 170 window.FCK_InternalCSS = FCKConfig. FullBasePath + 'css/fck_internal.css' ;171 window.FCK_ShowTableBordersCSS = FCKConfig. FullBasePath + 'css/fck_showtableborders_gecko.css' ;170 window.FCK_InternalCSS = FCKConfig.BasePath + 'css/fck_internal.css' ; 171 window.FCK_ShowTableBordersCSS = FCKConfig.BasePath + 'css/fck_showtableborders_gecko.css' ; 172 172 173 173 _Original_FCK_StartEditor.apply( this, arguments ) ; -
FCKeditor/branches/versions/2.6.x/editor/plugins/dragresizetable/fckplugin.js
r1564 r2113 89 89 "_ResizeBarMouseDownListener" : function( evt ) 90 90 { 91 if ( ! evt )92 evt = window.event ;93 91 if ( FCKDragTableHandler._LeftCell ) 94 92 FCKDragTableHandler._MouseMoveMode = 1 ; … … 122 120 FCKDragTableHandler._MaximumX = maxX + offset.x ; 123 121 FCKDragTableHandler._LastX = null ; 122 123 if (evt.preventDefault) 124 evt.preventDefault(); 125 else 126 evt.returnValue = false; 124 127 }, 125 128 "_ResizeBarMouseUpListener" : function( evt ) 126 129 { 127 if ( ! evt )128 evt = window.event ;129 130 FCKDragTableHandler._MouseMoveMode = 0 ; 130 131 FCKDragTableHandler._HideResizeBar() ; … … 219 220 "_ResizeBarMouseMoveListener" : function( evt ) 220 221 { 221 if ( ! evt )222 evt = window.event ;223 222 if ( FCKDragTableHandler._MouseMoveMode == 0 ) 224 223 return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; … … 422 421 var disabledListener = function( evt ) 423 422 { 424 if ( ! evt )425 evt = window.event ;426 423 if ( evt.preventDefault ) 427 424 evt.preventDefault() ; -
FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckdomrange.js
r2064 r2113 869 869 FCKDomTools.TrimNode( oFixedBlock ) ; 870 870 871 // If the fixed block is empty (not counting bookmark nodes) 872 // Add a <br /> inside to expand it. 873 if ( FCKDomTools.CheckIsEmptyElement(oFixedBlock, function( element ) { return element.getAttribute('_fck_bookmark') != 'true' ; } ) 874 && FCKBrowserInfo.IsGeckoLike ) 875 FCKTools.AppendBogusBr( oFixedBlock ) ; 876 871 877 // Insert the fixed block into the DOM. 872 878 this.InsertNode( oFixedBlock ) ; -
FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckenterkey.js
r2064 r2113 44 44 [ 13 , 'Enter' ], 45 45 [ SHIFT + 13, 'ShiftEnter' ], 46 [ 9 , 'Tab' ],47 46 [ 8 , 'Backspace' ], 48 [ CTRL + 8 , 'CtrlBackspace' ],47 [ CTRL + 8 , 'CtrlBackspace' ], 49 48 [ 46 , 'Delete' ] 50 49 ] ) ; 51 50 52 if ( tabSpaces > 0 ) 53 { 54 this.TabText = '' ; 55 while ( tabSpaces-- > 0 ) 51 this.TabText = '' ; 52 53 // Safari by default inserts 4 spaces on TAB, while others make the editor 54 // loose focus. So, we need to handle it here to not include those spaces. 55 if ( tabSpaces > 0 || FCKBrowserInfo.IsSafari ) 56 { 57 while ( tabSpaces-- ) 56 58 this.TabText += '\xa0' ; 59 60 oKeystrokeHandler.SetKeystrokes( [ 9, 'Tab' ] ); 57 61 } 58 62 … … 532 536 } 533 537 534 if ( FCKBrowserInfo.Is Safari)538 if ( FCKBrowserInfo.IsGeckoLike ) 535 539 FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 536 else if ( FCKBrowserInfo.IsGeckoLike )537 ( eNextBlock || eNewBlock ).scrollIntoView( false ) ;538 540 539 541 oRange.Select() ; -
FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckiecleanup.js
r1565 r2113 44 44 function FCKIECleanup_Cleanup() 45 45 { 46 if ( !this._FCKCleanupObj || !window.FCKUnloadFlag)46 if ( !this._FCKCleanupObj || ( FCKConfig.MsWebBrowserControlCompat && !window.FCKUnloadFlag ) ) 47 47 return ; 48 48 -
FCKeditor/branches/versions/2.6.x/editor/_source/fckeditorapi.js
r1825 r2113 165 165 function FCKeditorAPI_Cleanup() 166 166 { 167 if ( ! window.FCKUnloadFlag ) 167 if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat 168 && !window.FCKUnloadFlag ) 168 169 return ; 169 170 delete FCKeditorAPI.Instances[ FCK.Name ] ; … … 171 172 function FCKeditorAPI_ConfirmCleanup() 172 173 { 173 window.FCKUnloadFlag = true ; 174 if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat ) 175 window.FCKUnloadFlag = true ; 174 176 } 175 177 FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckconfig.js
r1825 r2113 43 43 44 44 FCKConfig.BasePath = sFullProtocol + FCKConfig.BasePath.substring( 0, FCKConfig.BasePath.lastIndexOf( '/' ) + 1) ; 45 FCKConfig.FullBasePath = FCKConfig.BasePath ;46 45 } 47 46 else 48 { 49 FCKConfig.BasePath =document.location.pathname.substring( 0, document.location.pathname.lastIndexOf( '/' ) + 1) ;50 FCKConfig.FullBasePath = document.location.protocol + '//' + document.location.host + FCKConfig.BasePath ; 51 } 47 FCKConfig.BasePath = document.location.protocol + '//' + document.location.host + 48 document.location.pathname.substring( 0, document.location.pathname.lastIndexOf( '/' ) + 1) ; 49 50 FCKConfig.FullBasePath = FCKConfig.BasePath ; 52 51 53 52 FCKConfig.EditorPath = FCKConfig.BasePath.replace( /editor\/$/, '' ) ; -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdebug.js
r1565 r2113 22 22 */ 23 23 24 var FCKDebug = new Object() ; 24 // Public function defined here must be declared in fckdebug_empty.js. 25 25 26 FCKDebug._GetWindow = function() 26 var FCKDebug = 27 27 { 28 if ( !this.DebugWindow || this.DebugWindow.closed ) 29 this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ; 28 Output : function( message, color, noParse ) 29 { 30 if ( ! FCKConfig.Debug ) 31 return ; 30 32 31 return this.DebugWindow ; 32 } 33 try 34 { 35 this._GetWindow().Output( message, color ) ; 36 } 37 catch ( e ) {} // Ignore errors 38 }, 33 39 34 FCKDebug.Output = function( message, color, noParse)35 {36 if ( ! FCKConfig.Debug )37 return ;40 OutputObject : function( anyObject, color ) 41 { 42 if ( ! FCKConfig.Debug ) 43 return ; 38 44 39 try 45 try 46 { 47 this._GetWindow().OutputObject( anyObject, color ) ; 48 } 49 catch ( e ) {} // Ignore errors 50 }, 51 52 _GetWindow : function() 40 53 { 41 this._GetWindow().Output( message, color ) ; 54 if ( !this.DebugWindow || this.DebugWindow.closed ) 55 this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ; 56 57 return this.DebugWindow ; 42 58 } 43 catch ( e ) {} // Ignore errors 44 } 45 46 FCKDebug.OutputObject = function( anyObject, color ) 47 { 48 if ( ! FCKConfig.Debug ) 49 return ; 50 51 try 52 { 53 this._GetWindow().OutputObject( anyObject, color ) ; 54 } 55 catch ( e ) {} // Ignore errors 56 } 59 } ; -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdialog.js
r2064 r2113 99 99 // Calculate the dialog position, centering it on the screen. 100 100 var viewSize = FCKTools.GetViewPaneSize( topWindow ) ; 101 var scrollPosition = FCKTools.GetScrollPosition( topWindow ) ; 101 var scrollPosition = { 'X' : 0, 'Y' : 0 } ; 102 if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) 103 FCKTools.GetScrollPosition( topWindow ) ; 102 104 var iTop = Math.max( scrollPosition.Y + ( viewSize.Height - height - 20 ) / 2, 0 ) ; 103 105 var iLeft = Math.max( scrollPosition.X + ( viewSize.Width - width - 20 ) / 2, 0 ) ; … … 106 108 var dialog = topDocument.createElement( 'iframe' ) ; 107 109 FCKTools.ResetStyles( dialog ) ; 108 dialog.src = FCKConfig. FullBasePath + 'fckdialog.html' ;110 dialog.src = FCKConfig.BasePath + 'fckdialog.html' ; 109 111 110 112 // Dummy URL for testing whether the code in fckdialog.js alone leaks memory. … … 115 117 FCKDomTools.SetElementStyles( dialog, 116 118 { 117 'position' : 'absolute',119 'position' : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) ? 'absolute' : 'fixed', 118 120 'top' : iTop + 'px', 119 121 'left' : iLeft + 'px', -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdocumentprocessor.js
r2064 r2113 46 46 var oImg = FCKTools.GetElementDocument( realElement ).createElement( 'IMG' ) ; 47 47 oImg.className = fakeClass ; 48 oImg.src = FCKConfig. FullBasePath + 'images/spacer.gif' ;48 oImg.src = FCKConfig.BasePath + 'images/spacer.gif' ; 49 49 oImg.setAttribute( '_fckfakelement', 'true', 0 ) ; 50 50 oImg.setAttribute( '_fckrealelement', FCKTempBin.AddElement( realElement ), 0 ) ; -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdomtools.js
r1825 r2113 973 973 974 974 /** 975 * Current implementation for ScrollIntoView (due to #1462). We don't have 976 * a complete implementation here, just the things that fit our needs. 975 * Current implementation for ScrollIntoView (due to #1462 and #2279). We 976 * don't have a complete implementation here, just the things that fit our 977 * needs. 977 978 */ 978 979 ScrollIntoView : function( element, alignTop ) -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck_gecko.js
r2064 r2113 350 350 FCK.InsertHtml = function( html ) 351 351 { 352 var doc = FCK.EditorDocument ; 353 352 354 html = FCKConfig.ProtectedSource.Protect( html ) ; 353 355 html = FCK.ProtectEvents( html ) ; … … 358 360 FCKUndo.SaveUndoStep() ; 359 361 362 if ( FCKBrowserInfo.IsGecko ) 363 { 364 // Using the following trick, present at the beginning and at 365 // the end of the HTML are preserved (#2248). 366 html = '<span id="__fakeFCKRemove1__" style="display:none;">fakeFCKRemove</span>' + html + '<span id="__fakeFCKRemove2__" style="display:none;">fakeFCKRemove</span>' ; 367 } 368 360 369 // Insert the HTML code. 361 this.EditorDocument.execCommand( 'inserthtml', false, html ) ; 370 doc.execCommand( 'inserthtml', false, html ) ; 371 372 if ( FCKBrowserInfo.IsGecko ) 373 { 374 // Remove the fake nodes. 375 FCKDomTools.RemoveNode( doc.getElementById('__fakeFCKRemove1__') ) ; 376 FCKDomTools.RemoveNode( doc.getElementById('__fakeFCKRemove2__') ) ; 377 } 378 362 379 this.Focus() ; 363 380 … … 367 384 var bookmark = range.CreateBookmark() ; 368 385 369 FCKDocumentProcessor.Process( FCK.EditorDocument) ;386 FCKDocumentProcessor.Process( doc ) ; 370 387 371 388 // Restore caret position, ignore any errors in case the document -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck_ie.js
r2064 r2113 30 30 if ( !FCK._BehaviorsStyle ) 31 31 { 32 var sBasePath = FCKConfig. FullBasePath ;32 var sBasePath = FCKConfig.BasePath ; 33 33 var sTableBehavior = '' ; 34 34 var sStyle ; 35 35 36 // The behaviors should be pointed using the FullBasePath to avoid security36 // The behaviors should be pointed using the BasePath to avoid security 37 37 // errors when using a different BaseHref. 38 38 sStyle = '<style type="text/css" _fcktemp="true">' ; -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck.js
r2064 r2113 674 674