Modularization of text editor.