Add document change functions for mini-code-edit example.