Starter code and functions to get text from the editor