Changeset 1828

Show
Ignore:
Timestamp:
2008-03-28 00:28:26 (4 months ago)
Author:
fredck
Message:

Updated "latest" branch with version 2.6 RC.

Location:
FCKeditor/releases/latest
Files:
3 added
93 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/releases/latest/_documentation.html

    r1638 r1828  
    3333                FCKeditor Documentation</h1> 
    3434        <p> 
    35                 You can find the official documentation for FCKeditor online, at <a href="http://wiki.fckeditor.net/"> 
    36                         http://wiki.fckeditor.net/</a>.</p> 
     35                You can find the official documentation for FCKeditor online, at <a href="http://docs.fckeditor.net/"> 
     36                        http://docs.fckeditor.net/</a>.</p> 
    3737</body> 
    3838</html> 
  • FCKeditor/releases/latest/editor/css/fck_internal.css

    r1638 r1828  
    5252        background-position: center center; 
    5353        background-image: url(images/fck_flashlogo.gif); 
     54        background-repeat: no-repeat; 
     55        width: 80px; 
     56        height: 80px; 
     57} 
     58 
     59.FCK__UnknownObject 
     60{ 
     61        border: #a9a9a9 1px solid; 
     62        background-position: center center; 
     63        background-image: url(images/fck_plugin.gif); 
    5464        background-repeat: no-repeat; 
    5565        width: 80px; 
  • FCKeditor/releases/latest/editor/dialog/common/fck_dialog_common.js

    r1638 r1828  
    5959{ 
    6060        // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor 
    61         return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:hand}' ; 
     61        return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ; 
    6262} 
    6363 
     
    102102        var element = GetE( elementId ) ; 
    103103        element.focus() ; 
    104         element.select() ; 
     104 
     105        // element.select may not be available for some fields (like <select>). 
     106        if ( element.select ) 
     107                element.select() ; 
    105108} 
    106109 
     
    275278                                oldNode = null ; 
    276279 
    277                                 if ( oEditor.FCKDialog.SelectionData ) 
     280                                if ( oEditor.FCK.Selection.SelectionData ) 
    278281                                { 
    279                                         // Trick to refresh the selection object and avoid error in fckdialog.html Selection.EnsureSelection 
     282                                        // Trick to refresh the selection object and avoid error in 
     283                                        // fckdialog.html Selection.EnsureSelection 
    280284                                        var oSel = oEditor.FCK.EditorDocument.selection ; 
    281                                         oEditor.FCKDialog.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation 
     285                                        oEditor.FCK.Selection.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation 
    282286                                } 
    283287                        } 
    284288                        oNewNode = oEditor.FCK.InsertElement( oNewNode ) ; 
    285289 
    286                         // FCKDialog.SelectionData is broken by now since we've deleted the previously selected element. 
    287                         // So we need to reassign it. 
    288                         if ( oEditor.FCKDialog.SelectionData ) 
     290                        // FCK.Selection.SelectionData is broken by now since we've 
     291                        // deleted the previously selected element. So we need to reassign it. 
     292                        if ( oEditor.FCK.Selection.SelectionData ) 
    289293                        { 
    290294                                var range = oEditor.FCK.EditorDocument.body.createControlRange() ; 
    291295                                range.add( oNewNode ) ; 
    292                                 oEditor.FCKDialog.SelectionData = range ; 
     296                                oEditor.FCK.Selection.SelectionData = range ; 
    293297                        } 
    294298                } 
  • FCKeditor/releases/latest/editor/dialog/fck_about.html

    r1638 r1828  
    7171                <table cellpadding="0" cellspacing="0" border="0" width="100%" style="height: 100%"> 
    7272                        <tr> 
    73                                 <td> 
     73                                <td colspan="2"> 
    7474                                        <img alt="" src="fck_about/logo_fckeditor.gif" width="236" height="41" align="left" /> 
    7575                                        <table width="80" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" align="right"> 
     
    7979                                                                <span fcklang="DlgAboutVersion">version</span> 
    8080                                                                <br /> 
    81                                                                 <b>2.6 Beta 1</b><br /> 
    82                                                                 Build 18219</td> 
     81                                                                <b>2.6 RC</b><br /> 
     82                                                                Build 18531</td> 
    8383                                                </tr> 
    8484                                        </table> 
     
    8686                        </tr> 
    8787                        <tr style="height: 100%"> 
    88                                 <td align="center"> 
    89                                         &nbsp;<br /> 
     88                                <td align="center" valign="middle"> 
    9089                                        <span style="font-size: 14px" dir="ltr"> 
    91                                                 <br /> 
    9290                                                <b><a href="http://www.fckeditor.net/?about" target="_blank" title="Visit the FCKeditor web site"> 
    9391                                                        Support <b>Open Source</b> Software</a></b> </span> 
    94                                         <br /> 
    95                                         <br /> 
    96                                         <br /> 
     92                                        <div style="padding-top:15px"> 
     93                                                <img alt="" src="fck_about/logo_fredck.gif" width="87" height="36" /> 
     94                                        </div> 
     95                                </td> 
     96                                <td align="center" nowrap="nowrap" valign="middle"> 
     97                                        <div> 
     98                                                <div style="margin-bottom:5px" dir="ltr">Selected Sponsor</div> 
     99                                                <a href="http://www.spellchecker.net/fckeditor/" target="_blank"><img alt="Selected Sponsor" border="0" src="fck_about/sponsors/spellchecker_net.gif" width="75" height="75" /></a> 
     100                                        </div> 
     101                                </td> 
     102                        </tr> 
     103                        <tr> 
     104                                <td width="100%" nowrap="nowrap"> 
    97105                                        <span fcklang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/?About" 
    98106                                                target="_blank">http://www.fckeditor.net/</a>. 
     
    100108                                        Copyright &copy; 2003-2008 <a href="#" onclick="SendEMail();">Frederico Caldeira Knabben</a> 
    101109                                </td> 
    102                         </tr> 
    103                         <tr> 
    104110                                <td align="center"> 
    105                                         <img alt="" src="fck_about/logo_fredck.gif" width="87" height="36" /> 
     111                                        <a href="http://www.fckeditor.net/sponsors/apply" target="_blank">Become a Sponsor</a> 
    106112                                </td> 
    107113                        </tr> 
  • FCKeditor/releases/latest/editor/dialog/fck_flash/fck_flash.js

    r1638 r1828  
    142142        } 
    143143 
    144         oEditor.FCKFlashProcessor.RefreshView( oFakeImage, oEmbed ) ; 
     144        oEditor.FCKEmbedAndObjectProcessor.RefreshView( oFakeImage, oEmbed ) ; 
    145145 
    146146        return true ; 
  • FCKeditor/releases/latest/editor/dialog/fck_flash.html

    r1638 r1828  
    9797                                <br /> 
    9898                                <input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /> 
    99                                 <iframe name="UploadWindow" style="DISPLAY: none" src="javascript:void(0)"></iframe> 
     99                                <script type="text/javascript"> 
     100                                        document.write( '<iframe name="UploadWindow" style="DISPLAY: none" src="' + FCKTools.GetVoidUrl() + '"></iframe>' ) ; 
     101                                </script> 
    100102                        </form> 
    101103                </div> 
  • FCKeditor/releases/latest/editor/dialog/fck_image/fck_image.js

    r1638 r1828  
    251251                else                    // Creating a new link. 
    252252                { 
    253                         dialog.Selection.EnsureSelection() ; 
    254  
    255253                        if ( !bHasImage ) 
    256254                                oEditor.FCKSelection.SelectNode( oImage ) ; 
  • FCKeditor/releases/latest/editor/dialog/fck_image/fck_image_preview.html

    r1638 r1828  
    5454        <div> 
    5555                <a id="lnkPreview" onclick="return false;" style="cursor: default"> 
    56                         <img id="imgPreview" src="javascript:void(0)" onload="window.parent.UpdateOriginal();" 
     56                        <img id="imgPreview" onload="window.parent.UpdateOriginal();" 
    5757                                style="display: none" alt="" /></a>Lorem ipsum dolor sit amet, consectetuer adipiscing 
    5858                elit. Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus 
  • FCKeditor/releases/latest/editor/dialog/fck_image.html

    r1638 r1828  
    165165                        <br /> 
    166166                        <input id="btnUpload" type="submit" value="Send it to the Server" fcklang="DlgLnkBtnUpload" /> 
    167                         <iframe name="UploadWindow" style="display: none" src="javascript:void(0)"></iframe> 
     167                        <script type="text/javascript"> 
     168                                document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"></iframe>' ) ; 
     169                        </script> 
    168170                </form> 
    169171        </div> 
  • FCKeditor/releases/latest/editor/dialog/fck_link/fck_link.js

    r1638 r1828  
    160160        // Activate the "OK" button. 
    161161        dialog.SetOkButton( true ) ; 
    162         SelectField( 'txtUrl' ) ; 
     162 
     163        // Select the first field. 
     164        switch( GetE('cmbLinkType').value ) 
     165        { 
     166                case 'url' : 
     167                        SelectField( 'txtUrl' ) ; 
     168                        break ; 
     169                case 'email' : 
     170                        SelectField( 'txtEMailAddress' ) ; 
     171                        break ; 
     172                case 'anchor' : 
     173                        if ( GetE('divSelAnchor').style.display != 'none' ) 
     174                                SelectField( 'cmbAnchorName' ) ; 
     175                        else 
     176                                SelectField( 'cmbLinkType' ) ; 
     177        } 
    163178} 
    164179 
     
    624639 
    625640        // Select the (first) link. 
    626         dialog.Selection.EnsureSelection() ; 
    627641        oEditor.FCKSelection.SelectNode( aLinks[0] ); 
    628642 
  • FCKeditor/releases/latest/editor/dialog/fck_replace.html

    r1638 r1828  
    232232// Knuth-Morris-Pratt Algorithm for stream input 
    233233KMP_NOMATCH = 0 ; 
    234 KMP_STARTED = 1 ; 
    235 KMP_ADVANCED = 2 ; 
    236 KMP_MATCHED = 3 ; 
     234KMP_ADVANCED = 1 ; 
     235KMP_MATCHED = 2 ; 
    237236function KmpMatch( pattern, ignoreCase ) 
    238237{ 
     
    269268                                        return KMP_MATCHED; 
    270269                                } 
    271                                 return this._State > 1 ? KMP_ADVANCED : KMP_STARTED ; 
     270                                return KMP_ADVANCED ; 
    272271                        } 
    273272                        else if ( this._State == 0 ) 
     
    292291        var matchState = KMP_NOMATCH ; 
    293292        var matchBookmark = null ; 
     293        var matchBookmarkStart = [] ; 
    294294 
    295295        // Match finding. 
     
    306306                                { 
    307307                                        matcher.Reset(); 
    308                                         matchBookmark = null ; 
     308                                        matchBookmarkStart = [] ; 
    309309                                } 
    310310                        } 
     
    316316                                // So delete any positional information. 
    317317                                if ( matchState == KMP_NOMATCH ) 
    318                                         matchBookmark = null ; 
    319                                 // The currently scanned character is a possible start, so mark down the starting position. 
    320                                 else if ( matchState == KMP_STARTED ) 
    321                                         matchBookmark = { Start : cursor.concat( [] ) } ; 
     318                                        matchBookmarkStart = [] ; 
     319                                // We've matched something, but it's not a complete match, so let's just mark down the position for backtracking later. 
     320                                else if ( matchState == KMP_ADVANCED ) 
     321                                { 
     322                                        matchBookmarkStart.push( cursor.concat( [] ) ) ; 
     323                                        if ( matchBookmarkStart.length > matcher._State ) 
     324                                                matchBookmarkStart.shift() ; 
     325                                } 
    322326                                // Found a complete match! Mark down the ending position as well. 
    323327                                else if ( matchState == KMP_MATCHED ) 
    324328                                { 
    325                                         // It is possible to get a KMP_MATCHED without KMP_STARTED when the match pattern is only 1 character. 
     329                                        // It is possible to get a KMP_MATCHED without KMP_ADVANCED when the match pattern is only 1 character. 
    326330                                        // So need to check and mark down the starting position as well. 
    327                                         if ( matchBookmark == null ) 
    328                                                 matchBookmark = { Start : cursor.concat( [] ) } ; 
    329  
    330                                         matchBookmark.End = cursor.concat( [] ) ; 
     331                                        if ( matchBookmarkStart.length == 0 ) 
     332                                                matchBookmarkStart = [cursor.concat( [] )] ; 
     333 
     334                                        matchBookmark = { 'Start' : matchBookmarkStart.shift(), 'End' : cursor.concat( [] ) } ; 
    331335                                        matchBookmark.End[ matchBookmark.End.length - 1 ]++; 
    332336 
  • FCKeditor/releases/latest/editor/dialog/fck_smiley.html

    r1638 r1828  
    5050function InsertSmiley( url ) 
    5151{ 
    52         dialog.Selection.EnsureSelection() ; 
    53  
    5452        oEditor.FCKUndo.SaveUndoStep() ; 
    5553 
  • FCKeditor/releases/latest/editor/dialog/fck_specialchar.html

    r1638 r1828  
    4444{ 
    4545        oEditor.FCKUndo.SaveUndoStep() ; 
    46         parent.Selection.EnsureSelection() ; 
    4746        oEditor.FCK.InsertHtml( charValue || "" ) ; 
    4847        window.parent.Cancel() ; 
  • FCKeditor/releases/latest/editor/dialog/fck_tablecell.html

    r1638 r1828  
    3737 
    3838// Array of selected Cells 
    39 dialog.Selection.EnsureSelection() ; 
    4039var aCells = oEditor.FCKTableHandler.GetSelectedCells() ; 
    4140 
  • FCKeditor/releases/latest/editor/dtd/fck_dtd_test.html

    r1016 r1828  
    1717        <table border="1"> 
    1818                <script type="text/javascript"> 
    19  
    20     alert(FCK.DTD); 
    2119 
    2220for ( var p in FCK.DTD ) 
  • FCKeditor/releases/latest/editor/fckdialog.html