Implemented text editor directive. Small fixes.