Added functionality for the text formatting window.