scripting:api:text-document:replace-text