If the text has been changed as a result of stripping ws, we'll need to write the new value back to Ace's session.