Skip to main content

$createPoint

function

Creates a selection endpoint (Point) targeting the given node key at the specified offset.

function $createPoint(key: NodeKey, offset: number, type: 'text' | 'element'): PointType

Import

import { $createPoint } from '@modular/sdk/editor';