Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
$getTextContent
function
Returns the text content of the current selection, or an empty string if no selection exists.
function $getTextContent(): string
Import
import { $getTextContent } from '@modular/sdk/editor';