In File menu click New. If current text is changed system confirm saving. If file is not loaded and text is not empty system confirm saving and show save dialog. If file for saving is not selected system come back to editing.