Added functionality to the text edit panel.