editbox: selection replacement