Changeset 2113

Show
Ignore:
Timestamp:
2008-06-23 18:58:18 (7 months ago)
Author:
fredck
Message:

Merged trunk into branches/versions/2.6.x. Final commit for the release of version 2.6.2.

Location:
FCKeditor/branches/versions/2.6.x
Files:
1 added
27 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/versions/2.6.x/_dev/build_release.bat

    r2064 r2113  
    2626 
    2727:: Update this variable for each new release. 
    28 SET RELEASER_VERSION=2.6.1 
     28SET RELEASER_VERSION=2.6.2 
    2929 
    3030CLS 
  • FCKeditor/branches/versions/2.6.x/editor/fckeditor.html

    r2064 r2113  
    104104LoadScript( '_source/internals/fckconfig.js' ) ; 
    105105 
    106 LoadScript( '_source/internals/fckdebug.js' ) ; 
     106LoadScript( '_source/internals/fckdebug_empty.js' ) ; 
    107107LoadScript( '_source/internals/fckdomtools.js' ) ; 
    108108LoadScript( '_source/internals/fcktools.js' ) ; 
     
    238238FCKConfig_PreProcess() ; 
    239239 
    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. 
     241if ( FCKConfig.Debug ) 
     242        LoadScript( '_source/internals/fckdebug.js' ) ; 
     243 
     244        </script> 
     245        <script type="text/javascript"> 
     246 
     247var FCK_InternalCSS                     = FCKConfig.BasePath + 'css/fck_internal.css' ;                                 // @Packager.RemoveLine 
     248var FCK_ShowTableBordersCSS     = FCKConfig.BasePath + 'css/fck_showtableborders_gecko.css' ;   // @Packager.RemoveLine 
    242249/* @Packager.RemoveLine 
    243250// 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}' ) ; 
     251var 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)}' ) ; 
     252var 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}' ) ; 
    246253@Packager.RemoveLine */ 
    247254 
  • FCKeditor/branches/versions/2.6.x/editor/filemanager/browser/default/browser.html

    r2064 r2113  
    4444                } 
    4545                catch( e ) 
    46                 { 
    47                         break ; 
    48                 } 
     46                {} 
    4947 
    5048                // 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  
    4242                } 
    4343                catch( e ) 
    44                 { 
    45                         break ; 
    46                 } 
     44                {} 
    4745 
    4846                // 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  
    3737                } 
    3838                catch( e ) 
    39                 { 
    40                         break ; 
    41                 } 
     39                {} 
    4240 
    4341                // 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  
    6262                        if ( oXmlHttp.readyState == 4 ) 
    6363                        { 
    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' ) 
    6583                                { 
    6684                                        alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + 
     
    7189                                } 
    7290 
    73                                 oFCKXml.DOMDocument = oXmlHttp.responseXML ; 
     91                                oFCKXml.DOMDocument = oXml ; 
    7492                                asyncFunctionPointer( oFCKXml ) ; 
    7593                        } 
  • FCKeditor/branches/versions/2.6.x/editor/js/fckadobeair.js

    r1629 r2113  
    168168                { 
    169169                        // 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' ; 
    172172 
    173173                        _Original_FCK_StartEditor.apply( this, arguments ) ; 
  • FCKeditor/branches/versions/2.6.x/editor/plugins/dragresizetable/fckplugin.js

    r1564 r2113  
    8989        "_ResizeBarMouseDownListener" : function( evt ) 
    9090        { 
    91                 if ( ! evt ) 
    92                         evt = window.event ; 
    9391                if ( FCKDragTableHandler._LeftCell ) 
    9492                        FCKDragTableHandler._MouseMoveMode = 1 ; 
     
    122120                FCKDragTableHandler._MaximumX = maxX + offset.x ; 
    123121                FCKDragTableHandler._LastX = null ; 
     122 
     123                if (evt.preventDefault) 
     124                        evt.preventDefault(); 
     125                else 
     126                        evt.returnValue = false; 
    124127        }, 
    125128        "_ResizeBarMouseUpListener" : function( evt ) 
    126129        { 
    127                 if ( ! evt ) 
    128                         evt = window.event ; 
    129130                FCKDragTableHandler._MouseMoveMode = 0 ; 
    130131                FCKDragTableHandler._HideResizeBar() ; 
     
    219220        "_ResizeBarMouseMoveListener" : function( evt ) 
    220221        { 
    221                 if ( ! evt ) 
    222                         evt = window.event ; 
    223222                if ( FCKDragTableHandler._MouseMoveMode == 0 ) 
    224223                        return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; 
     
    422421                        var disabledListener = function( evt ) 
    423422                        { 
    424                                 if ( ! evt ) 
    425                                         evt = window.event ; 
    426423                                if ( evt.preventDefault ) 
    427424                                        evt.preventDefault() ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckdomrange.js

    r2064 r2113  
    869869                FCKDomTools.TrimNode( oFixedBlock ) ; 
    870870 
     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 
    871877                // Insert the fixed block into the DOM. 
    872878                this.InsertNode( oFixedBlock ) ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckenterkey.js

    r2064 r2113  
    4444                [ 13            , 'Enter' ], 
    4545                [ SHIFT + 13, 'ShiftEnter' ], 
    46                 [ 9             , 'Tab' ], 
    4746                [ 8                     , 'Backspace' ], 
    48                 [ CTRL + 8              , 'CtrlBackspace' ], 
     47                [ CTRL + 8      , 'CtrlBackspace' ], 
    4948                [ 46            , 'Delete' ] 
    5049        ] ) ; 
    5150 
    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-- ) 
    5658                        this.TabText += '\xa0' ; 
     59 
     60                oKeystrokeHandler.SetKeystrokes( [ 9, 'Tab' ] ); 
    5761        } 
    5862 
     
    532536                } 
    533537 
    534                 if ( FCKBrowserInfo.IsSafari ) 
     538                if ( FCKBrowserInfo.IsGeckoLike ) 
    535539                        FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 
    536                 else if ( FCKBrowserInfo.IsGeckoLike ) 
    537                         ( eNextBlock || eNewBlock ).scrollIntoView( false ) ; 
    538540 
    539541                oRange.Select() ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckiecleanup.js

    r1565 r2113  
    4444function FCKIECleanup_Cleanup() 
    4545{ 
    46         if ( !this._FCKCleanupObj || !window.FCKUnloadFlag ) 
     46        if ( !this._FCKCleanupObj || ( FCKConfig.MsWebBrowserControlCompat && !window.FCKUnloadFlag ) ) 
    4747                return ; 
    4848 
  • FCKeditor/branches/versions/2.6.x/editor/_source/fckeditorapi.js

    r1825 r2113  
    165165function FCKeditorAPI_Cleanup() 
    166166{ 
    167         if ( ! window.FCKUnloadFlag ) 
     167        if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat 
     168                        && !window.FCKUnloadFlag ) 
    168169                return ; 
    169170        delete FCKeditorAPI.Instances[ FCK.Name ] ; 
     
    171172function FCKeditorAPI_ConfirmCleanup() 
    172173{ 
    173         window.FCKUnloadFlag = true ; 
     174        if ( window.FCKConfig && FCKConfig.MsWebBrowserControlCompat ) 
     175                window.FCKUnloadFlag = true ; 
    174176} 
    175177FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckconfig.js

    r1825 r2113  
    4343 
    4444        FCKConfig.BasePath = sFullProtocol + FCKConfig.BasePath.substring( 0, FCKConfig.BasePath.lastIndexOf( '/' ) + 1) ; 
    45         FCKConfig.FullBasePath = FCKConfig.BasePath ; 
    4645} 
    4746else 
    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 
     50FCKConfig.FullBasePath = FCKConfig.BasePath ; 
    5251 
    5352FCKConfig.EditorPath = FCKConfig.BasePath.replace( /editor\/$/, '' ) ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdebug.js

    r1565 r2113  
    2222 */ 
    2323 
    24 var FCKDebug = new Object() ; 
     24// Public function defined here must be declared in fckdebug_empty.js. 
    2525 
    26 FCKDebug._GetWindow = function() 
     26var FCKDebug = 
    2727{ 
    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 ; 
    3032 
    31         return this.DebugWindow ; 
    32 } 
     33                try 
     34                { 
     35                        this._GetWindow().Output( message, color ) ; 
     36                } 
     37                catch ( e ) {}   // Ignore errors 
     38        }, 
    3339 
    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 ; 
    3844 
    39         try 
     45                try 
     46                { 
     47                        this._GetWindow().OutputObject( anyObject, color ) ; 
     48                } 
     49                catch ( e ) {}   // Ignore errors 
     50        }, 
     51 
     52        _GetWindow : function() 
    4053        { 
    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 ; 
    4258        } 
    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  
    9999                        // Calculate the dialog position, centering it on the screen. 
    100100                        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 ) ; 
    102104                        var iTop  = Math.max( scrollPosition.Y + ( viewSize.Height - height - 20 ) / 2, 0 ) ; 
    103105                        var iLeft = Math.max( scrollPosition.X + ( viewSize.Width - width - 20 )  / 2, 0 ) ; 
     
    106108                        var dialog = topDocument.createElement( 'iframe' ) ; 
    107109                        FCKTools.ResetStyles( dialog ) ; 
    108                         dialog.src = FCKConfig.FullBasePath + 'fckdialog.html' ; 
     110                        dialog.src = FCKConfig.BasePath + 'fckdialog.html' ; 
    109111 
    110112                        // Dummy URL for testing whether the code in fckdialog.js alone leaks memory. 
     
    115117                        FCKDomTools.SetElementStyles( dialog, 
    116118                                        { 
    117                                                 'position'      : 'absolute', 
     119                                                'position'      : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) ? 'absolute' : 'fixed', 
    118120                                                'top'           : iTop + 'px', 
    119121                                                'left'          : iLeft + 'px', 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdocumentprocessor.js

    r2064 r2113  
    4646        var oImg = FCKTools.GetElementDocument( realElement ).createElement( 'IMG' ) ; 
    4747        oImg.className = fakeClass ; 
    48         oImg.src = FCKConfig.FullBasePath + 'images/spacer.gif' ; 
     48        oImg.src = FCKConfig.BasePath + 'images/spacer.gif' ; 
    4949        oImg.setAttribute( '_fckfakelement', 'true', 0 ) ; 
    5050        oImg.setAttribute( '_fckrealelement', FCKTempBin.AddElement( realElement ), 0 ) ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdomtools.js

    r1825 r2113  
    973973 
    974974        /** 
    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. 
    977978         */ 
    978979        ScrollIntoView : function( element, alignTop ) 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck_gecko.js

    r2064 r2113  
    350350FCK.InsertHtml = function( html ) 
    351351{ 
     352        var doc = FCK.EditorDocument ; 
     353 
    352354        html = FCKConfig.ProtectedSource.Protect( html ) ; 
    353355        html = FCK.ProtectEvents( html ) ; 
     
    358360        FCKUndo.SaveUndoStep() ; 
    359361 
     362        if ( FCKBrowserInfo.IsGecko ) 
     363        { 
     364                // Using the following trick, &nbsp; 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 
    360369        // 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 
    362379        this.Focus() ; 
    363380 
     
    367384        var bookmark = range.CreateBookmark() ; 
    368385 
    369         FCKDocumentProcessor.Process( FCK.EditorDocument ) ; 
     386        FCKDocumentProcessor.Process( doc ) ; 
    370387 
    371388        // Restore caret position, ignore any errors in case the document 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck_ie.js

    r2064 r2113  
    3030        if ( !FCK._BehaviorsStyle ) 
    3131        { 
    32                 var sBasePath = FCKConfig.FullBasePath ; 
     32                var sBasePath = FCKConfig.BasePath ; 
    3333                var sTableBehavior = '' ; 
    3434                var sStyle ; 
    3535 
    36                 // The behaviors should be pointed using the FullBasePath to avoid security 
     36                // The behaviors should be pointed using the BasePath to avoid security 
    3737                // errors when using a different BaseHref. 
    3838                sStyle = '<style type="text/css" _fcktemp="true">' ; 
  • FCKeditor/branches/versions/2.6.x/editor/_source/internals/fck.js

    r2064 r2113  
    674674