Bug 878843 - Integrate with replaceSurroundingText for autocorrect