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 whether the removal was successful.
errorCallback Optional. Is called when the operation failed with an error.