Ticket #3517: 3517.patch

File 3517.patch, 1.9 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/find/dialogs/find.js

     
    425425                var finder = {
    426426                        searchRange : null,
    427427                        matchRange : null,
    428                         find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched )
     428                        find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched, cyclicRerun )
    429429                        {
    430430                                if( !this.matchRange )
    431431                                        this.matchRange =
     
    480480                                this.matchRange.removeHighlight();
    481481                                // Clear current session and restart with the default search
    482482                                // range.
    483                                 if ( matchCyclic )
     483                                if ( matchCyclic && !cyclicRerun )
    484484                                {
    485485                                        this.searchRange = getSearchRange( true );
    486486                                        this.matchRange = null;
     487                                        // Clone arguments
     488                                        var newArgs = [];
     489                                        for ( var i = 0 ; i < arguments.length ; i++ )
     490                                                newArgs[ i ] = arguments[ i ];
     491                                        // Set cyclicRerun flag to avoid infinitive loop.
     492                                        newArgs[ 5 ] = true;
     493                                        return arguments.callee.apply( this, newArgs );
    487494                                }
    488495
    489496                                return false;
  • CHANGES.html

     
    6161                <li><a href="http://dev.fckeditor.net/ticket/3633">#3633</a> : Default context menu isn't disabled in toolbar, status bar, panels...</li>
    6262                <li><a href="http://dev.fckeditor.net/ticket/3897">#3897</a> : Now there is no image previews when the URL is empty in image dialog.</li>
    6363                <li><a href="http://dev.fckeditor.net/ticket/4048">#4048</a> : Context submenu was lacking uiColor.</li>
     64                <li><a href="http://dev.fckeditor.net/ticket/3517">#3517</a> : Fixed "Match cyclic" field in Find & Replace dialog.</li>
    6465        </ul>
    6566        <h3>
    6667                CKEditor 3.0</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy