Skip to main content

$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';