scripting:api:text-document:insert-undo-record