Module

link/findlinkrange

@ckeditor/ckeditor5-link/src/findlinkrange

module

Filtering

Functions

  • findLinkRange( position, value ) → Range

    static

    Returns a range containing the entire link in which the given position is placed.

    It can be used e.g. to get the entire range on which the linkHref attribute needs to be changed when having a selection inside a link.

    Parameters

    position : Position

    The start position.

    value : String

    The linkHref attribute value.

    Returns

    Range

    The link range.