Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
$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';