Change editor contents when the trim operation changes it