Contents

deleteSelection()

Deletes the receiver’s current selection unless it’s collapsed.

Declaration

func deleteSelection()

Discussion

No content is removed if the current selection is collapsed (a range is selected with the same nodes and offsets for the start and end) or if there is no current selection.

See Also

Editing Documents