Bug 882197: remember cursor position after calling replaceSurroundingText
Merge pull request #10352 from davidflanagan/bug882197

Bug 882197: remember cursor position after calling replaceSurroundingText r=dhylands