create a text cursor only when dealing with text documents
Allow saving .ots files.