Make Document > Strip trailing spaces/Replace tabs/Replace spaces use the current selection

The selection remains ignored when those operations are performed when saving a file.