Implement basic code editing for mini-code-edit sample app.