ref #6925 Fix selection handling for editor parts