Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.94/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]