Created attachment 22157 [details] Patch to Range.replaceText() to allow replace-all and updated unit test The SVN version for Range.replaceText() does not permit the caller to replace all instances of a piece of text. It also forces the caller to rebuild the Range after each call. The supplied patch is an improved version of replaceText() that permits the caller to continue working with the Range, an overloaded version that replaces all instances, and an update to the relevant unit test.
Thanks for this fix and test, applied to svn trunk