Module

find-and-replace/findandreplacestate

@ckeditor/ckeditor5-find-and-replace/src/findandreplacestate

module

Filtering

Classes

Type Definitions

Functions

  • sortSearchResultsByMarkerPositions( model, results ) → Array<ResultType>

    Sorts search results by marker positions. Make sure that the results are sorted in the same order as they appear in the document to avoid issues with the find next command. Apparently, the order of the results in the state might be different than the order of the markers in the model.

    Parameters

    model : Model
    results : Array<ResultType>

    Returns

    Array<ResultType>