Another approach that some web apps take is on any page where you have an editor with text entered in it, ask for confirmation that you really want to leave the page and lose your text when you click on any link on the page. Caveat: this approach is highly irritating for power users who have decided to abandon the text entered in the editor and to continue on their way by following a link on the page...