Seperated editor logic from application logic

Added setItalicText() and setUnderlineText() listeners.