@witchcraft/editor
    Preparing search index...
    • Get the position of any mark of the given type touching the given position.

      Basically searches outwards from the position until it finds a text node without the given mark type.

      Parameters

      • state: EditorState
      • markTypeOrName: string | MarkType
      • pos: number

      Returns { from: number; to: number } | null