Skip to main content

$createTextNode

function

Creates a TextNode initialized with the given text, defaulting to empty.

function $createTextNode(text?: string): TextNode

Import

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