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