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

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

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

Constructors

new
NodePos(
editor: Editor,
isBlock?: boolean,
node?: Node | null,
)

Properties

private
currentNode
private
editor
private
isBlock
private
readonly
name
private
resolvedPos
actualDepth: number | null
readonly
after: NodePos | null
readonly
attributes: { [key: string]: any; }
readonly
before: NodePos | null
readonly
children: NodePos[]
content: Fragment
readonly
depth: number
readonly
element: HTMLElement
readonly
firstChild: NodePos | null
readonly
from: number
readonly
lastChild: NodePos | null
readonly
node: Node
readonly
parent: NodePos | null
readonly
pos: number
readonly
range: Range
readonly
size: number
readonly
textContent: string
readonly
to: number

Methods

closest(selector: string, attributes?: { [key: string]: any; }): NodePos | null
querySelector(selector: string, attributes?: { [key: string]: any; }): NodePos | null
querySelectorAll(
selector: string,
attributes?: { [key: string]: any; },
firstItemOnly?: boolean,
): NodePos[]
setAttribute(attributes: { [key: string]: any; }): void