Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@tiptap/react.ts>getNodeAtPosition

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
variable getNodeAtPosition
import { getNodeAtPosition } from "https://deno.land/x/netzo@0.4.72/deps/@tiptap/react.ts";

Finds the first node of a given type or name in the current selection.

type

(
state: EditorState,
typeOrName: string | NodeType,
pos: number,
maxDepth?: number,
) => [Node | null, number]