$removeTextFromCaretRange
functionRemove all text and nodes in the given range. If the range spans multiple blocks then the remaining contents of the later block will be merged with the earlier block.
Import
import { $removeTextFromCaretRange } from '@modular/sdk/editor';Notes
- returns
- The new collapsed range (biased towards the earlier node)