Removes an editable region from the collection. The region's text is not removed.

Introduced: X18.

<void> EditableRegionCollection.remove(<EditableRegion> editableRegion, [<boolean> selectedPart], [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
editableRegion Specifies the editable region to remove.
selectedPart Optional. When this parameter is true, only the selected part of the editable region is removed. If the selection is in the middle od the region, it is split into two parts with the same parameters.
callback Optional. Receives all editable regions at the current text input position.
errorCallback Optional. Is called when the operation failed with an error.