the code of TextEditorModule was reconstructed and partly tested.

next step is full coverage by tests and extending configurability of the TextEditor