When using the "Replace" function or the API, the formatting of the replaced word is lost. Note: Using "Replace All" does not reset the formatting. Steps to reproduce: 1. Enter the text "The quick brown fox" in a document 2. Apply formatting to the word "brown" (eg, make it bold) 3. Perform a find/replace on the word brown (eg, replace with blue) using "replace", not "replace all" 4. The formatting of the word is reset (it's no longer bold)